* @brief return true if a included file is to be excluded in Preprocessor::getConfigs * @return true for the file to be excluded. */
| 536 | * @return true for the file to be excluded. |
| 537 | */ |
| 538 | bool configurationExcluded(const std::string &file) const { |
| 539 | return std::any_of(configExcludePaths.begin(), configExcludePaths.end(), [&file](const std::string& path) { |
| 540 | return file.length() >= path.length() && file.compare(0, path.length(), path) == 0; |
| 541 | }); |
| 542 | } |
| 543 | |
| 544 | /** |
| 545 | * @brief Enable extra checks by id. See isEnabled() |