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

Method SimpleTokenList

test/helpers.h:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107public:
108 template<size_t size>
109 explicit SimpleTokenList(const char (&code)[size], Standards::Language lang = Standards::Language::CPP)
110 : list{settings, lang}
111 {
112 if (!list.createTokensFromString(code))
113 throw std::runtime_error("creating tokens failed");
114 }
115
116 template<size_t size>
117 explicit SimpleTokenList(const char (&code)[size], const std::string& file0, Standards::Language lang = Standards::Language::CPP)

Callers

nothing calls this directly

Calls 2

appendFileIfNewMethod · 0.80

Tested by

no test coverage detected