@@ -549,11 +549,11 @@ class CPPCHECKLIB Token {
549549 void isAttributeNodiscard (const bool value) {
550550 setFlag (fIsAttributeNodiscard , value);
551551 }
552- bool isMaybeUnused () const {
553- return getFlag (fIsMaybeUnused );
552+ bool isAttributeMaybeUnused () const {
553+ return getFlag (fIsAttributeMaybeUnused );
554554 }
555- void isMaybeUnused (const bool value) {
556- setFlag (fIsMaybeUnused , value);
555+ void isAttributeMaybeUnused (const bool value) {
556+ setFlag (fIsAttributeMaybeUnused , value);
557557 }
558558 void setCppcheckAttribute (TokenImpl::CppcheckAttributes::Type type, MathLib::bigint value) {
559559 mImpl ->setCppcheckAttribute (type, value);
@@ -612,6 +612,12 @@ class CPPCHECKLIB Token {
612612 setFlag (fExternC , b);
613613 }
614614
615+ bool isSplittedVarDecl () const {
616+ return getFlag (fIsSplitVarDecl );
617+ }
618+ void isSplittedVarDecl (bool b) {
619+ setFlag (fIsSplitVarDecl , b);
620+ }
615621
616622 bool isBitfield () const {
617623 return mImpl ->mBits > 0 ;
@@ -1182,19 +1188,20 @@ class CPPCHECKLIB Token {
11821188 fIsAttributeNothrow = (1 << 13 ), // __attribute__((nothrow)), __declspec(nothrow)
11831189 fIsAttributeUsed = (1 << 14 ), // __attribute__((used))
11841190 fIsAttributePacked = (1 << 15 ), // __attribute__((packed))
1185- fIsControlFlowKeyword = (1 << 16 ), // if/switch/while/...
1186- fIsOperatorKeyword = (1 << 17 ), // operator=, etc
1187- fIsComplex = (1 << 18 ), // complex/_Complex type
1188- fIsEnumType = (1 << 19 ), // enumeration type
1189- fIsName = (1 << 20 ),
1190- fIsLiteral = (1 << 21 ),
1191- fIsTemplateArg = (1 << 22 ),
1192- fIsAttributeNodiscard = (1 << 23 ), // __attribute__ ((warn_unused_result)), [[nodiscard]]
1193- fAtAddress = (1 << 24 ), // @ 0x4000
1194- fIncompleteVar = (1 << 25 ),
1195- fConstexpr = (1 << 26 ),
1196- fExternC = (1 << 27 ),
1197- fIsMaybeUnused = (1 << 28 ), // [[maybe_unsed]]
1191+ fIsAttributeMaybeUnused = (1 << 16 ), // [[maybe_unsed]]
1192+ fIsControlFlowKeyword = (1 << 17 ), // if/switch/while/...
1193+ fIsOperatorKeyword = (1 << 18 ), // operator=, etc
1194+ fIsComplex = (1 << 19 ), // complex/_Complex type
1195+ fIsEnumType = (1 << 20 ), // enumeration type
1196+ fIsName = (1 << 21 ),
1197+ fIsLiteral = (1 << 22 ),
1198+ fIsTemplateArg = (1 << 23 ),
1199+ fIsAttributeNodiscard = (1 << 24 ), // __attribute__ ((warn_unused_result)), [[nodiscard]]
1200+ fAtAddress = (1 << 25 ), // @ 0x4000
1201+ fIncompleteVar = (1 << 26 ),
1202+ fConstexpr = (1 << 27 ),
1203+ fExternC = (1 << 28 ),
1204+ fIsSplitVarDecl = (1 << 29 ), // int a,b; <-- vardecl is split up
11981205 };
11991206
12001207 Token::Type mTokType ;
0 commit comments