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

Function isBool

lib/checkbool.cpp:40–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38static const CWE CWE704(704U); // Incorrect Type Conversion or Cast
39
40static bool isBool(const Variable* var)
41{
42 return (var && Token::Match(var->typeEndToken(), "bool|_Bool"));
43}
44
45//---------------------------------------------------------------------------
46void CheckBoolImpl::checkIncrementBoolean()

Callers 2

getContextAndValuesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected