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

Method isConst

lib/symboldatabase.cpp:8458–8463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8456}
8457
8458bool ValueType::isConst(nonneg int indirect) const
8459{
8460 if (indirect > pointer)
8461 return false;
8462 return constness & (1 << (pointer - indirect));
8463}
8464
8465bool ValueType::isVolatile(nonneg int indirect) const
8466{

Callers 15

possiblyAliasedMethod · 0.80
clearConstMethod · 0.80
assertWithSideEffectsMethod · 0.80
isFunctionConstMethod · 0.80
addClassFunctionMethod · 0.80
printVariableMethod · 0.80
printOutMethod · 0.80
printXmlMethod · 0.80
findFunctionMethod · 0.80

Calls

no outgoing calls

Tested by 15

stlarray3Method · 0.64
variableConstexprMethod · 0.64
staticMemberVarMethod · 0.64
functionArgs1Method · 0.64
symboldatabase67Method · 0.64
symboldatabase68Method · 0.64
symboldatabase69Method · 0.64
symboldatabase75Method · 0.64
findFunction21Method · 0.64
findFunction22Method · 0.64
findFunction23Method · 0.64