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

Method analyze

lib/checkstl.cpp:1042–1056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040 }
1041
1042 void analyze(const SymbolDatabase* symboldatabase) {
1043 for (const Scope* scope : symboldatabase->functionScopes) {
1044 const Function* f = scope->function;
1045 if (!f)
1046 continue;
1047 for (const Token* tok = scope->bodyStart; tok != scope->bodyEnd; tok = tok->next()) {
1048 if (Token::Match(tok, "if|while|for|goto|return"))
1049 break;
1050 std::vector<Info::Reference> c = invalidatesContainer(tok);
1051 if (c.empty())
1052 continue;
1053 invalidMethods[f].add(c);
1054 }
1055 }
1056 }
1057 };
1058}
1059

Callers 9

updateMethod · 0.80
analyzeRecursiveMethod · 0.80
analyzeRangeMethod · 0.80
traverseMethod · 0.80
traverseConditionalFunction · 0.80
updateFunction · 0.80
operator()Method · 0.80
analyzeRangeFunction · 0.80
invalidContainerMethod · 0.80

Calls 3

nextMethod · 0.80
emptyMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected