Tokenizer::simplifyTypedef: 'tokAt(offset)=>tokOffset': work in progress..
This commit is contained in:
parent
7c596a2b90
commit
67d095a10e
|
@ -1324,12 +1324,12 @@ void Tokenizer::simplifyTypedef()
|
||||||
}
|
}
|
||||||
|
|
||||||
// pointer to class member
|
// pointer to class member
|
||||||
else if (Token::Match(tok->tokAt(offset), "( %type% :: * %type% ) ;")) {
|
else if (Token::Match(tokOffset, "( %type% :: * %type% ) ;")) {
|
||||||
namespaceStart = tok->tokAt(offset + 1);
|
namespaceStart = tokOffset->next();
|
||||||
namespaceEnd = tok->tokAt(offset + 2);
|
namespaceEnd = tokOffset->tokAt(2);
|
||||||
ptrMember = true;
|
ptrMember = true;
|
||||||
typeName = tok->tokAt(offset + 4);
|
typeName = tokOffset->tokAt(4);
|
||||||
tok = tok->tokAt(offset + 6);
|
tok = tokOffset->tokAt(6);
|
||||||
}
|
}
|
||||||
|
|
||||||
// unhandled typedef, skip it and continue
|
// unhandled typedef, skip it and continue
|
||||||
|
|
Loading…
Reference in New Issue