Preprocessor: Enable 'normal' preprocessing whenever any defines are given. The special define CPPCHECK-TEST isn't needed anymore.

This commit is contained in:
Daniel Marjamäki 2011-10-30 18:40:59 +01:00
parent 433f4640a9
commit 278ba0ab3a
1 changed files with 1 additions and 1 deletions

View File

@ -854,7 +854,7 @@ void Preprocessor::preprocess(std::istream &srcCodeStream, std::string &processe
processedFile = ostr.str(); processedFile = ostr.str();
} }
if (_settings && _settings->userDefines.compare(0,14,"CPPCHECK-TEST;") == 0) { if (_settings && !_settings->userDefines.empty()) {
std::map<std::string, std::string> defs; std::map<std::string, std::string> defs;
// TODO: break out this code. There is other similar code. // TODO: break out this code. There is other similar code.