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

Method setCPP

lib/standards.cpp:112–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool Standards::setCPP(std::string str)
113{
114 if (str.empty())
115 return false;
116 const simplecpp::cppstd_t cpp_new = simplecpp::getCppStd(str);
117 const bool b = (cpp_new != simplecpp::CPPUnknown);
118 if (b) {
119 cpp = mapCPP(cpp_new);
120 stdValueCPP = std::move(str);
121 }
122 return b;
123}
124
125std::string Standards::getCPP() const
126{

Callers 6

loadFunctionMethod · 0.80
checkMethod · 0.80
setMethod · 0.80
setCPPAliasMethod · 0.80
loadSettingsMethod · 0.80
getCppcheckSettingsMethod · 0.80

Calls 2

mapCPPFunction · 0.85
emptyMethod · 0.45

Tested by 2

setMethod · 0.64
setCPPAliasMethod · 0.64