Clang import; robustness
This commit is contained in:
parent
060c695f80
commit
64612bf93e
|
@ -488,9 +488,11 @@ Token *clangastdump::AstNode::createTokens(TokenList *tokenList)
|
|||
if (memberName.compare(0, 2, "->") == 0) {
|
||||
dot->originalName("->");
|
||||
memberName = memberName.substr(2);
|
||||
} else {
|
||||
} else if (memberName.compare(0, 1, ".") == 0) {
|
||||
memberName = memberName.substr(1);
|
||||
}
|
||||
if (memberName.empty())
|
||||
memberName = "<unknown>";
|
||||
Token *member = addtoken(tokenList, memberName);
|
||||
mData->ref(mExtTokens.back(), member);
|
||||
dot->astOperand1(s);
|
||||
|
|
Loading…
Reference in New Issue