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

Method getcode

test/testpreprocessor.cpp:114–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112
113 template<size_t size>
114 static std::map<std::string, std::string> getcode(const Settings& settings, ErrorLogger& errorlogger, const char (&code)[size], const std::string &filename = "file.c")
115 {
116 return getcode(settings, errorlogger, code, size-1, {}, filename, nullptr);
117 }
118
119 static std::map<std::string, std::string> getcode(const Settings& settings, ErrorLogger& errorlogger, const char* code, std::size_t size, std::set<std::string> cfgs, const std::string &filename, SuppressionList *inlineSuppression)
120 {

Callers 1

setPlatformInfoMethod · 0.45

Calls 7

simplifyPathFunction · 0.85
reportOutputMethod · 0.80
inlineSuppressionsMethod · 0.80
simplifyPragmaAsmMethod · 0.80
getConfigsMethod · 0.80
removeCommentsMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected