MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / configurationExcluded

Function configurationExcluded

lib/settings.h:538–542  ·  view source on GitHub ↗

* @brief return true if a included file is to be excluded in Preprocessor::getConfigs * @return true for the file to be excluded. */

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected