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

Method tokenizeDebugListing_

test/testtokenize.cpp:585–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583#define tokenizeDebugListing(...) tokenizeDebugListing_(__FILE__, __LINE__, __VA_ARGS__)
584 template<size_t size>
585 std::string tokenizeDebugListing_(const char* file, int line, const char (&code)[size], bool cpp = true) {
586 SimpleTokenizer tokenizer(settings3, *this, cpp);
587 ASSERT_LOC(tokenizer.tokenize(code), file, line);
588
589 // result..
590 return tokenizer.tokens()->stringifyList(true,true,true,true,false);
591 }
592
593 template<size_t size>
594 void directiveDump(const char (&code)[size], std::ostream& ostr) {

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.80
stringifyListMethod · 0.80

Tested by

no test coverage detected