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

Method createTokensFromString

test/helpers.h:252–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250{
251 template<size_t size>
252 static bool createTokensFromString(TokenList& tokenlist, const char (&code)[size], const std::string& file)
253 {
254 if (tokenlist.front())
255 throw std::runtime_error("token list is not empty");
256 tokenlist.appendFileIfNew(file);
257 return tokenlist.createTokensFromString(code);
258 }
259};
260
261#endif // helpersH

Callers 10

simplifyTypedefMethod · 0.80
validateMethod · 0.80
testAstMethod · 0.80
SimpleTokenListMethod · 0.80
isKeywordMethod · 0.80
ast1Method · 0.80
templateParametersMethod · 0.80
function_match_argsMethod · 0.80

Calls 2

frontMethod · 0.80
appendFileIfNewMethod · 0.80

Tested by 9

simplifyTypedefMethod · 0.64
validateMethod · 0.64
testAstMethod · 0.64
isKeywordMethod · 0.64
ast1Method · 0.64
templateParametersMethod · 0.64
function_match_argsMethod · 0.64