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

Method getCppcheckAttribute

lib/token.cpp:2673–2681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2671}
2672
2673bool Token::Impl::getCppcheckAttribute(CppcheckAttributesType attrType, MathLib::bigint &value) const
2674{
2675 const CppcheckAttributes *attr = mCppcheckAttributes;
2676 while (attr && attr->type != attrType)
2677 attr = attr->next;
2678 if (attr)
2679 value = attr->value;
2680 return attr != nullptr;
2681}
2682
2683Token* findTypeEnd(Token* tok)
2684{

Callers 2

getCppcheckAttributeFunction · 0.80
valueFlowSafeFunctionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected