mirror of
https://github.com/verilator/verilator.git
synced 2026-09-06 17:01:09 +02:00
Change --preproc-comments to be new name of --pp-comments option.
This commit is contained in:
+2
-1
@@ -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
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user