Add --json-only and related JSON dumping (#4715) (#4831).

This commit is contained in:
Szymon Gizler
2024-02-09 17:50:09 -05:00
committed by Wilson Snyder
parent 248de2be2e
commit d667b73e8d
103 changed files with 27663 additions and 180 deletions
+4
View File
@@ -77,6 +77,7 @@ class FileLineSingleton final {
m_languages.clear();
}
void fileNameNumMapDumpXml(std::ostream& os);
void fileNameNumMapDumpJson(std::ostream& os);
static string filenameLetters(fileNameIdx_t fileno) VL_PURE;
// Add given bitset to the interned bitsets, return interned index
@@ -310,6 +311,9 @@ public:
return defaultFileLine().warnOff(code, flag);
}
static void fileNameNumMapDumpXml(std::ostream& os) { singleton().fileNameNumMapDumpXml(os); }
static void fileNameNumMapDumpJson(std::ostream& os) {
singleton().fileNameNumMapDumpJson(os);
}
// METHODS - Called from netlist
// Merge warning disables from another fileline