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

Method tokenValues_

test/testvalueflow.cpp:504–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502
503#define tokenValues(...) tokenValues_(__FILE__, __LINE__, __VA_ARGS__)
504 std::list<ValueFlow::Value> tokenValues_(const char* file, int line, const char code[], const char tokstr[], const Settings *s = nullptr, bool cpp = true) {
505 SimpleTokenizer tokenizer(s ? *s : settings, *this, cpp);
506 ASSERT_LOC(tokenizer.tokenize(code), file, line);
507 const Token *tok = Token::findmatch(tokenizer.tokens(), tokstr);
508 return tok ? tok->values() : std::list<ValueFlow::Value>();
509 }
510
511 std::list<ValueFlow::Value> tokenValues_(const char* file, int line, const char code[], const char tokstr[], ValueFlow::Value::ValueType vt) {
512 std::list<ValueFlow::Value> values = tokenValues_(file, line, code, tokstr);

Callers

nothing calls this directly

Calls 1

tokenizeMethod · 0.80

Tested by

no test coverage detected