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

Method tokenizeAndStringify_

test/testtokenize.cpp:553–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551#define tokenizeAndStringify(...) tokenizeAndStringify_(__FILE__, __LINE__, __VA_ARGS__)
552 template<size_t size>
553 std::string tokenizeAndStringify_(const char* file, int linenr, const char (&code)[size], const TokenizeOptions& opt = make_default_obj{}) {
554 // tokenize..
555 SimpleTokenizer tokenizer(settings2, *this, opt.cpp);
556 ASSERT_LOC(tokenizer.tokenize(code), file, linenr);
557
558 if (tokenizer.tokens())
559 return tokenizer.tokens()->stringifyList(false, opt.expand, false, true, false, nullptr, nullptr);
560 return "";
561 }
562
563 // TODO: get rid of this
564 std::string tokenizeAndStringify_(const char* file, int linenr, const std::string& code) {

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.80
stringifyListMethod · 0.80

Tested by

no test coverage detected