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

Method enabledStyle

test/testcmdlineparser.cpp:1002–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1000 }
1001
1002 void enabledStyle() {
1003 REDIRECT;
1004 const char * const argv[] = {"cppcheck", "--enable=style", "file.cpp"};
1005 ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv));
1006 ASSERT(settings->severity.isEnabled(Severity::error));
1007 ASSERT(settings->severity.isEnabled(Severity::style));
1008 ASSERT(settings->severity.isEnabled(Severity::warning));
1009 ASSERT(settings->severity.isEnabled(Severity::performance));
1010 ASSERT(settings->severity.isEnabled(Severity::portability));
1011 ASSERT(!settings->checks.isEnabled(Checks::unusedFunction));
1012 ASSERT(!settings->checks.isEnabled(Checks::internalCheck));
1013 }
1014
1015 void enabledPerformance() {
1016 REDIRECT;

Callers

nothing calls this directly

Calls 1

isEnabledMethod · 0.45

Tested by

no test coverage detected