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

Function isCPPCast

lib/astutils.cpp:3378–3381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3376}
3377
3378bool isCPPCast(const Token* tok)
3379{
3380 return tok && Token::simpleMatch(tok->previous(), "> (") && tok->astOperand2() && tok->astOperand1() && isCPPCastKeyword(tok->astOperand1());
3381}
3382
3383bool isConstVarExpression(const Token *tok, const std::function<bool(const Token*)>& skipPredicate)
3384{

Callers 9

objectIndexMethod · 0.85
isConstStatementFunction · 0.85
isVoidStmtFunction · 0.85
checkKnownArgumentMethod · 0.85
isTemporaryFunction · 0.85
isConstVarExpressionFunction · 0.85

Calls 4

isCPPCastKeywordFunction · 0.85
astOperand2Method · 0.80
astOperand1Method · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected