Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tokenizer::simplifyTypedef: 'tokAt(offset)=>tokOffset': work in progr…

…ess..
  • Loading branch information...
commit 67d095a10ebe48e2f86da4448776c12154108dad 1 parent 7c596a2
@edward-san edward-san authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/tokenize.cpp
View
10 lib/tokenize.cpp
@@ -1324,12 +1324,12 @@ void Tokenizer::simplifyTypedef()
}
// pointer to class member
- else if (Token::Match(tok->tokAt(offset), "( %type% :: * %type% ) ;")) {
- namespaceStart = tok->tokAt(offset + 1);
- namespaceEnd = tok->tokAt(offset + 2);
+ else if (Token::Match(tokOffset, "( %type% :: * %type% ) ;")) {
+ namespaceStart = tokOffset->next();
+ namespaceEnd = tokOffset->tokAt(2);
ptrMember = true;
- typeName = tok->tokAt(offset + 4);
- tok = tok->tokAt(offset + 6);
+ typeName = tokOffset->tokAt(4);
+ tok = tokOffset->tokAt(6);
}
// unhandled typedef, skip it and continue
Please sign in to comment.
Something went wrong with that request. Please try again.