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

Function hasOverloadedMemberAccess

lib/astutils.cpp:2630–2636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2628}
2629
2630static bool hasOverloadedMemberAccess(const Token* tok)
2631{
2632 if (!Token::simpleMatch(tok, "."))
2633 return false;
2634 const Token* varTok = tok->astOperand2();
2635 return !varTok || !varTok->variable() || !varTok->variable()->valueType() || varTok->variable()->valueType()->pointer == 0;
2636}
2637
2638bool isVariableChanged(const Token *tok, int indirect, const Settings &settings, int depth)
2639{

Callers 2

checkConstFuncMethod · 0.85
isVariableChangedFunction · 0.85

Calls 3

astOperand2Method · 0.80
variableMethod · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected