File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -966,7 +966,7 @@ const Token * Token::findClosingBracket() const
966
966
}
967
967
// save named template parameter
968
968
else if (templateParameter && depth == 1 && Token::Match (closing, " [,=]" ) &&
969
- closing->previous ()->isName () && !Match (closing->previous (), " class|typename|." ))
969
+ closing->previous ()->isName () && !Token:: Match (closing->previous (), " class|typename|." ))
970
970
templateParameters.insert (closing->strAt (-1 ));
971
971
}
972
972
@@ -2330,6 +2330,13 @@ void Token::setValueType(ValueType *vt)
2330
2330
}
2331
2331
}
2332
2332
2333
+ const ValueType *Token::argumentType () const {
2334
+ const Token *top = this ;
2335
+ while (top && !Token::Match (top->astParent (), " ,|(" ))
2336
+ top = top->astParent ();
2337
+ return top ? top->mImpl ->mValueType : nullptr ;
2338
+ }
2339
+
2333
2340
void Token::type (const ::Type *t)
2334
2341
{
2335
2342
mImpl ->mType = t;
Original file line number Diff line number Diff line change @@ -333,12 +333,7 @@ class CPPCHECKLIB Token {
333
333
}
334
334
void setValueType (ValueType *vt);
335
335
336
- const ValueType *argumentType () const {
337
- const Token *top = this ;
338
- while (top && !Token::Match (top->astParent (), " ,|(" ))
339
- top = top->astParent ();
340
- return top ? top->mImpl ->mValueType : nullptr ;
341
- }
336
+ const ValueType *argumentType () const ;
342
337
343
338
Token::Type tokType () const {
344
339
return mTokType ;
You can’t perform that action at this time.
0 commit comments