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

Function acceptFile

lib/path.h:150–153  ·  view source on GitHub ↗

* @brief Check if the file extension indicates that it's a C/C++ source file. * Check if the file has source file extension: *.c;*.cpp;*.cxx;*.c++;*.cc;*.txx * @param filename filename to check. path info is optional * @param lang the detected language * @return true if the file extension indicates it should be checked */

Source from the content-addressed store, hash-verified

148 * @return true if the file extension indicates it should be checked
149 */
150 static bool acceptFile(const std::string &filename, Standards::Language* lang = nullptr) {
151 const std::set<std::string> extra;
152 return acceptFile(filename, extra, lang);
153 }
154
155 /**
156 * @brief Check if the file extension indicates that it's a C/C++ source file.

Callers 6

importCompileCommandsMethod · 0.85
importVcxprojMethod · 0.85
importVcxitemsMethod · 0.85
importBcb6PrjMethod · 0.85
addFiles2Function · 0.85
acceptFileMethod · 0.85

Calls

no outgoing calls

Tested by 1

acceptFileMethod · 0.68