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

Method tokenizeExpr_

test/testvarid.cpp:306–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304#define tokenizeExpr(...) tokenizeExpr_(__FILE__, __LINE__, __VA_ARGS__)
305 template<size_t size>
306 std::string tokenizeExpr_(const char* file, int line, const char (&code)[size]) {
307 SimpleTokenizer2 tokenizer(settings, *this, code, "test.cpp");
308
309 ASSERT_LOC(tokenizer.simplifyTokens1(""), file, line);
310
311 // result..
312 Token::stringifyOptions options = Token::stringifyOptions::forDebugExprId();
313 options.files = false;
314 return tokenizer.tokens()->stringifyList(options);
315 }
316
317#define compareVaridsForVariable(...) compareVaridsForVariable_(__FILE__, __LINE__, __VA_ARGS__)
318 template<size_t size>

Callers

nothing calls this directly

Calls 2

simplifyTokens1Method · 0.80
stringifyListMethod · 0.80

Tested by

no test coverage detected