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

Function isLowerThanLogicalAnd

lib/templatesimplifier.cpp:2357–2360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2355}
2356
2357static bool isLowerThanLogicalAnd(const Token *lower)
2358{
2359 return lower->isAssignmentOp() || Token::Match(lower, "}|;|(|[|]|)|,|?|:|%oror%|return|throw|case");
2360}
2361static bool isLowerThanOr(const Token* lower)
2362{
2363 return isLowerThanLogicalAnd(lower) || lower->str() == "&&";

Callers 3

isLowerThanOrFunction · 0.85
simplifyCalculationsMethod · 0.85

Calls 1

isAssignmentOpMethod · 0.80

Tested by

no test coverage detected