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

Method tokenizeHeader_

test/testvarid.cpp:294–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292#define tokenizeHeader(...) tokenizeHeader_(__FILE__, __LINE__, __VA_ARGS__)
293 template<size_t size>
294 std::string tokenizeHeader_(const char* file, int line, const char (&code)[size], const char filename[]) {
295 SimpleTokenizer tokenizer{settings, *this, std::string(filename)};
296 ASSERT_LOC((tokenizer.tokenize)(code), file, line);
297
298 // result..
299 Token::stringifyOptions options = Token::stringifyOptions::forDebugVarId();
300 options.files = false;
301 return tokenizer.tokens()->stringifyList(options);
302 }
303
304#define tokenizeExpr(...) tokenizeExpr_(__FILE__, __LINE__, __VA_ARGS__)
305 template<size_t size>

Callers

nothing calls this directly

Calls 1

stringifyListMethod · 0.80

Tested by

no test coverage detected