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

Function astIsBool

lib/astutils.cpp:230–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230bool astIsBool(const Token *tok)
231{
232 return tok && (tok->isBoolean() || (tok->valueType() && tok->valueType()->type == ValueType::Type::BOOL && !tok->valueType()->pointer));
233}
234
235bool astIsPointer(const Token *tok)
236{

Callers 15

valueFlowArrayBoolFunction · 0.85
getConditionsFunction · 0.85
isBoolMethod · 0.85
skipNotAndCastsMethod · 0.85
isNegatedBoolMethod · 0.85
checkIncrementBooleanMethod · 0.85
isConvertedToBoolFunction · 0.85
checkBitwiseOnBooleanMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected