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

Method dump_

test/testsimplifytemplate.cpp:358–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356#define dump(...) dump_(__FILE__, __LINE__, __VA_ARGS__)
357 template<size_t size>
358 std::string dump_(const char* file, int line, const char (&code)[size], const CheckOptions& options = make_default_obj()) {
359 const Settings& s = options.debugwarnings ? settings1_d : settings1;
360 SimpleTokenizer tokenizer(s, *this);
361
362 ASSERT_LOC(tokenizer.tokenize(code), file, line);
363
364 std::ostringstream ostr;
365 (tokenizer.dump)(ostr);
366
367 return ostr.str();
368 }
369
370 void template1() {
371 const char code[] = "template <class T> T f(T val) { T a; }\n"

Callers

nothing calls this directly

Calls 3

make_default_objClass · 0.85
tokenizeMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected