Fix filename backslash escapes in C code (#5947).

This commit is contained in:
Wilson Snyder
2025-04-29 19:27:38 -04:00
parent d3016b62f5
commit 5ca62de167
14 changed files with 72 additions and 24 deletions
+2
View File
@@ -268,6 +268,8 @@ public:
string asciiLineCol() const;
int filenameno() const VL_MT_SAFE { return m_filenameno; }
string filename() const VL_MT_SAFE { return singleton().numberToName(filenameno()); }
// Filename with C string escapes
string filenameEsc() const VL_MT_SAFE { return VString::quoteBackslash(filename()); }
bool filenameIsGlobal() const VL_MT_SAFE {
return (filename() == commandLineFilename() || filename() == builtInFilename());
}