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

Function findThisChanged

lib/astutils.cpp:3070–3081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3068}
3069
3070static const Token* findThisChanged(const Token* start, const Token* end, int indirect, const Settings& settings)
3071{
3072 if (!precedes(start, end))
3073 return nullptr;
3074 for (const Token* tok = start; tok != end; tok = tok->next()) {
3075 if (!exprDependsOnThis(tok))
3076 continue;
3077 if (isThisChanged(tok, indirect, settings))
3078 return tok;
3079 }
3080 return nullptr;
3081}
3082
3083template<class Find>
3084static const Token* findExpressionChangedImpl(const Token* expr,

Callers 1

Calls 4

precedesFunction · 0.85
exprDependsOnThisFunction · 0.85
isThisChangedFunction · 0.85
nextMethod · 0.80

Tested by

no test coverage detected