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

Method setCAlias

test/teststandards.cpp:101–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 void setCAlias() const {
102 Standards stds;
103 ASSERT_EQUALS(true, stds.setC("gnu17"));
104 ASSERT_EQUALS_ENUM(Standards::C17, stds.c);
105 ASSERT_EQUALS("gnu17", stds.stdValueC);
106 ASSERT_EQUALS_ENUM(Standards::CPPLatest, stds.cpp);
107 ASSERT_EQUALS("", stds.stdValueCPP);
108 }
109
110 void getC() const {
111 ASSERT_EQUALS_ENUM(Standards::C99, Standards::getC("c99"));

Callers

nothing calls this directly

Calls 1

setCMethod · 0.80

Tested by

no test coverage detected