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

Method check_

test/testunusedfunctions.cpp:100–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98#define check(...) check_(__FILE__, __LINE__, __VA_ARGS__)
99 template<size_t size>
100 void check_(const char* file, int line, const char (&code)[size], const CheckOptions& options = make_default_obj()) {
101 // TODO: avoid copy
102 const Settings settings1 = (options.platform == Platform::Type::Native) ? settings : settingsBuilder(settings).platform(options.platform).build();
103
104 check_(file, line, code, settings1, options.cpp);
105 }
106
107 template<size_t size>
108 void check_(const char* file, int line, const char (&code)[size], const Settings& settings1, bool cpp = true) {

Callers

nothing calls this directly

Calls 4

make_default_objClass · 0.85
buildMethod · 0.80
tokenizeMethod · 0.80
parseTokensMethod · 0.80

Tested by

no test coverage detected