Preprocessor: Enable 'normal' preprocessing whenever any defines are given. The special define CPPCHECK-TEST isn't needed anymore.
This commit is contained in:
parent
433f4640a9
commit
278ba0ab3a
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue