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

Method setC

lib/standards.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool Standards::setC(std::string str)
48{
49 if (str.empty())
50 return false;
51 const simplecpp::cstd_t c_new = simplecpp::getCStd(str);
52 const bool b = (c_new != simplecpp::CUnknown);
53 if (b) {
54 c = mapC(c_new);
55 stdValueC = std::move(str);
56 }
57 return b;
58}
59
60std::string Standards::getC() const
61{

Callers 6

loadFunctionMethod · 0.80
checkMethod · 0.80
setMethod · 0.80
setCAliasMethod · 0.80
loadSettingsMethod · 0.80
getCppcheckSettingsMethod · 0.80

Calls 2

mapCFunction · 0.85
emptyMethod · 0.45

Tested by 2

setMethod · 0.64
setCAliasMethod · 0.64