Refactoring; Convert templates to normal functions

This commit is contained in:
Daniel Marjamäki 2020-02-15 08:08:55 +01:00
parent 61d847cac2
commit 697ca12d97
1 changed files with 2 additions and 4 deletions

View File

@ -416,8 +416,7 @@ struct ForwardTraversal {
return parent && (parent->str() == ":" || parent->astOperand2() == tok);
}
template <class T>
static T* getInitTok(T* tok) {
static Token* getInitTok(Token* tok) {
if (!tok)
return nullptr;
if (Token::Match(tok, "%name% ("))
@ -431,8 +430,7 @@ struct ForwardTraversal {
return tok->astOperand2()->astOperand1();
}
template <class T>
static T* getStepTok(T* tok) {
static Token* getStepTok(Token* tok) {
if (!tok)
return nullptr;
if (Token::Match(tok, "%name% ("))