Fixed #8049 (Preprocessor: Comment in system include not removed properly)

This commit is contained in:
Daniel Marjamäki 2017-05-02 22:18:24 +02:00
parent 1bc7a89b3c
commit 295e4fdfc2
1 changed files with 2 additions and 0 deletions

View File

@ -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 "";