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

Method check_

test/testsymboldatabase.cpp:2653–2663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2651#define check(...) check_(__FILE__, __LINE__, __VA_ARGS__)
2652 template<size_t size>
2653 void check_(const char* file, int line, const char (&code)[size], bool debug = true, bool cpp = true, const Settings* pSettings = nullptr) {
2654 // Check..
2655 const Settings settings = settingsBuilder(pSettings ? *pSettings : settings1).debugwarnings(debug).build();
2656
2657 // Tokenize..
2658 SimpleTokenizer tokenizer(settings, *this, cpp);
2659 ASSERT_LOC(tokenizer.tokenize(code), file, line);
2660
2661 // force symbol database creation
2662 tokenizer.createSymbolDatabase();
2663 }
2664
2665 void functionArgs1() {
2666 {

Callers

nothing calls this directly

Calls 4

buildMethod · 0.80
debugwarningsMethod · 0.80
tokenizeMethod · 0.80
createSymbolDatabaseMethod · 0.80

Tested by

no test coverage detected