Fixed #7743 (--config-exclude no longer supported)
This commit is contained in:
parent
190cc82d63
commit
9dcad7115a
|
@ -365,8 +365,10 @@ std::set<std::string> Preprocessor::getConfigs(const simplecpp::TokenList &token
|
|||
|
||||
::getConfigs(tokens, defined, _settings.userDefines, _settings.userUndefs, ret);
|
||||
|
||||
for (std::map<std::string, simplecpp::TokenList*>::const_iterator it = tokenlists.begin(); it != tokenlists.end(); ++it)
|
||||
for (std::map<std::string, simplecpp::TokenList*>::const_iterator it = tokenlists.begin(); it != tokenlists.end(); ++it) {
|
||||
if (!_settings.configurationExcluded(it->first))
|
||||
::getConfigs(*(it->second), defined, _settings.userDefines, _settings.userUndefs, ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -247,7 +247,7 @@ public:
|
|||
ImportProject project;
|
||||
|
||||
/**
|
||||
* @brief return true if a file is to be excluded from configuration checking
|
||||
* @brief return true if a included file is to be excluded in Preprocessor::getConfigs
|
||||
* @return true for the file to be excluded.
|
||||
*/
|
||||
bool configurationExcluded(const std::string &file) const {
|
||||
|
|
Loading…
Reference in New Issue