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

Function mapC

lib/standards.cpp:26–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include <simplecpp.h>
25
26static Standards::cstd_t mapC(simplecpp::cstd_t cstd) {
27 switch (cstd)
28 {
29 case simplecpp::C89:
30 return Standards::C89;
31 case simplecpp::C99:
32 return Standards::C99;
33 case simplecpp::C11:
34 return Standards::C11;
35 case simplecpp::C17:
36 return Standards::C17;
37 case simplecpp::C23:
38 return Standards::C23;
39 case simplecpp::C2Y:
40 return Standards::C2Y;
41 case simplecpp::CUnknown:
42 return Standards::CLatest;
43 }
44 cppcheck::unreachable();
45}
46
47bool Standards::setC(std::string str)
48{

Callers 2

setCMethod · 0.85
getCMethod · 0.85

Calls 1

unreachableFunction · 0.85

Tested by

no test coverage detected