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

Method setCppcheckAttribute

lib/token.cpp:2657–2671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2655}
2656
2657void Token::Impl::setCppcheckAttribute(CppcheckAttributesType attrType, MathLib::bigint value)
2658{
2659 CppcheckAttributes *attr = mCppcheckAttributes;
2660 while (attr && attr->type != attrType)
2661 attr = attr->next;
2662 if (attr)
2663 attr->value = value;
2664 else {
2665 attr = new CppcheckAttributes;
2666 attr->type = attrType;
2667 attr->value = value;
2668 attr->next = mCppcheckAttributes;
2669 mCppcheckAttributes = attr;
2670 }
2671}
2672
2673bool Token::Impl::getCppcheckAttribute(CppcheckAttributesType attrType, MathLib::bigint &value) const
2674{

Callers 3

setCppcheckAttributeFunction · 0.80
simplifyCPPAttributeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected