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

Method checkHdrs_

test/testtokenize.cpp:8440–8449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8438#define checkHdrs(...) checkHdrs_(__FILE__, __LINE__, __VA_ARGS__)
8439 template<size_t size>
8440 std::string checkHdrs_(const char* file, int line, const char (&code)[size], bool checkHeadersFlag) {
8441 const Settings settings = settingsBuilder().checkHeaders(checkHeadersFlag).build();
8442
8443 SimpleTokenizer2 tokenizer(settings, *this, code, "test.cpp");
8444
8445 // Tokenizer..
8446 ASSERT_LOC(tokenizer.simplifyTokens1(""), file, line);
8447
8448 return tokenizer.tokens()->stringifyList(false, false, true, true, true);
8449 }
8450
8451 void checkHeader1() {
8452 // #9977

Callers

nothing calls this directly

Calls 4

buildMethod · 0.80
checkHeadersMethod · 0.80
simplifyTokens1Method · 0.80
stringifyListMethod · 0.80

Tested by

no test coverage detected