Preprocessor; do not write macro usage in dump output if it is empty
This commit is contained in:
parent
447bea5c18
commit
140aa6afb4
|
@ -958,6 +958,7 @@ void Preprocessor::dump(std::ostream &out) const
|
|||
}
|
||||
out << " </directivelist>" << std::endl;
|
||||
|
||||
if (!mMacroUsage.empty()) {
|
||||
out << " <macro-usage>" << std::endl;
|
||||
for (const simplecpp::MacroUsage ¯oUsage: mMacroUsage) {
|
||||
out << " <macro "
|
||||
|
@ -972,6 +973,7 @@ void Preprocessor::dump(std::ostream &out) const
|
|||
}
|
||||
out << " </macro-usage>" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
static const std::uint32_t crc32Table[] = {
|
||||
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
|
||||
|
|
Loading…
Reference in New Issue