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

Function getDefinesFlags

lib/cppcheck.cpp:530–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530static std::string getDefinesFlags(const std::string &semicolonSeparatedString)
531{
532 std::string flags;
533 for (const std::string &d: split(semicolonSeparatedString, ";"))
534 flags += "-D" + d + " ";
535 return flags;
536}
537
538CppCheck::CppCheck(const Settings& settings,
539 Suppressions& supprs,

Callers 2

getClangFlagsFunction · 0.85
analyseClangTidyMethod · 0.85

Calls 1

splitFunction · 0.85

Tested by

no test coverage detected