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

Function valueFlowString

lib/valueflow.cpp:445–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445static void valueFlowString(TokenList& tokenlist, const Settings& settings)
446{
447 for (Token* tok = tokenlist.front(); tok; tok = tok->next()) {
448 if (tok->tokType() == Token::eString) {
449 ValueFlow::Value strvalue;
450 strvalue.valueType = ValueFlow::Value::ValueType::TOK;
451 strvalue.tokvalue = tok;
452 strvalue.setKnown();
453 setTokenValue(tok, std::move(strvalue), settings);
454 }
455 }
456}
457
458static const Token* findTypeEnd(const Token* tok)
459{

Callers 1

setValuesMethod · 0.85

Calls 3

setTokenValueFunction · 0.85
frontMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected