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

Function isConstant

lib/checkother.cpp:2222–2224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2220}
2221
2222static bool isConstant(const Token* tok) {
2223 return tok && (tok->isEnumerator() || Token::Match(tok, "%bool%|%num%|%str%|%char%|nullptr|NULL"));
2224}
2225
2226static bool isConstStatement(const Token *tok, const Library& library, bool platformIndependent, bool isNestedBracket = false)
2227{

Callers 2

isConstStatementFunction · 0.85
constStatementErrorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected