Change --preproc-comments to be new name of --pp-comments option.

This commit is contained in:
Wilson Snyder
2025-11-01 21:59:16 -04:00
parent e6cdaf112c
commit d4aa00dbeb
8 changed files with 17 additions and 9 deletions
+2 -1
View File
@@ -1612,11 +1612,12 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc,
});
DECL_OPTION("-pins-uint8", OnOff, &m_pinsUint8);
DECL_OPTION("-pipe-filter", Set, &m_pipeFilter);
DECL_OPTION("-pp-comments", OnOff, &m_ppComments);
DECL_OPTION("-pp-comments", OnOff, &m_preprocComments).undocumented(); // Renamed
DECL_OPTION("-prefix", CbVal, [this, fl](const char* valp) {
validateIdentifier(fl, valp, "--prefix");
m_prefix = valp;
});
DECL_OPTION("-preproc-comments", OnOff, &m_preprocComments);
DECL_OPTION("-preproc-resolve", OnOff, &m_preprocResolve);
DECL_OPTION("-preproc-token-limit", CbVal, [this, fl](const char* valp) {
m_preprocTokenLimit = std::atoi(valp);
+2 -2
View File
@@ -267,7 +267,7 @@ private:
bool m_pinsScUintBool = false; // main switch: --pins-sc-uint-bool
bool m_pinsScBigUint = false; // main switch: --pins-sc-biguint
bool m_pinsUint8 = false; // main switch: --pins-uint8
bool m_ppComments = false; // main switch: --pp-comments
bool m_preprocComments = false; // main switch: --preproc-comments
bool m_profC = false; // main switch: --prof-c
bool m_profCFuncs = false; // main switch: --prof-cfuncs
bool m_profExec = false; // main switch: --prof-exec
@@ -554,7 +554,7 @@ public:
bool pinsScUintBool() const { return m_pinsScUintBool; }
bool pinsScBigUint() const VL_MT_SAFE { return m_pinsScBigUint; }
bool pinsUint8() const { return m_pinsUint8; }
bool ppComments() const { return m_ppComments; }
bool preprocComments() const { return m_preprocComments; }
bool profC() const { return m_profC; }
bool profCFuncs() const { return m_profCFuncs; }
bool profExec() const { return m_profExec; }
+1 -1
View File
@@ -444,7 +444,7 @@ bool V3PreProcImp::commentTokenMatch(string& cmdr, const char* strg) {
void V3PreProcImp::comment(const string& text) {
// Comment detected. Only keep relevant data.
bool printed = false;
if (v3Global.opt.preprocOnly() && v3Global.opt.ppComments()) {
if (v3Global.opt.preprocOnly() && v3Global.opt.preprocComments()) {
insertUnreadback(text);
printed = true;
}