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

Method tok_

test/testsimplifytemplate.cpp:347–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345#define tok(...) tok_(__FILE__, __LINE__, __VA_ARGS__)
346 template<size_t size>
347 std::string tok_(const char* file, int line, const char (&code)[size], const CheckOptions& options = make_default_obj()) {
348 const Settings& s = options.debugwarnings ? settings1_d : settings1;
349 SimpleTokenizer tokenizer(s, *this);
350
351 ASSERT_LOC(tokenizer.tokenize(code), file, line);
352
353 return tokenizer.tokens()->stringifyList(nullptr, true);
354 }
355
356#define dump(...) dump_(__FILE__, __LINE__, __VA_ARGS__)
357 template<size_t size>

Callers

nothing calls this directly

Calls 3

make_default_objClass · 0.85
tokenizeMethod · 0.80
stringifyListMethod · 0.80

Tested by

no test coverage detected