Fixed #8049 (Preprocessor: Comment in system include not removed properly)
This commit is contained in:
parent
1bc7a89b3c
commit
295e4fdfc2
|
@ -611,6 +611,8 @@ std::string Preprocessor::getcode(const simplecpp::TokenList &tokens1, const std
|
|||
if (hasErrors(outputList))
|
||||
return "";
|
||||
|
||||
tokens2.removeComments();
|
||||
|
||||
// ensure that guessed define macros without value are not used in the code
|
||||
if (!validateCfg(cfg, macroUsage))
|
||||
return "";
|
||||
|
|
Loading…
Reference in New Issue