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

Method platformNative

test/testcmdlineparser.cpp:1874–1880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1872 }
1873
1874 void platformNative() {
1875 REDIRECT;
1876 const char * const argv[] = {"cppcheck", "--platform=native", "file.cpp"};
1877 ASSERT(settings->platform.set(Platform::Type::Unspecified));
1878 ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv));
1879 ASSERT_EQUALS(Platform::Type::Native, settings->platform.type);
1880 }
1881
1882 void platformUnspecified() {
1883 REDIRECT;

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected