forked from qt-creator/qt-creator
Fixed ClassSpecifierAST::lastToken() to return a valid token.
This commit is contained in:
committed by
Thorbjørn Lindeijer
parent
283019a44a
commit
efc01fd994
@@ -562,10 +562,13 @@ unsigned ClassSpecifierAST::lastToken() const
|
|||||||
else if (dot_dot_dot_token)
|
else if (dot_dot_dot_token)
|
||||||
return dot_dot_dot_token + 1;
|
return dot_dot_dot_token + 1;
|
||||||
|
|
||||||
else if (base_clause_list)
|
else if (base_clause_list) {
|
||||||
return base_clause_list->lastToken();
|
unsigned token = base_clause_list->lastToken();
|
||||||
|
if (token)
|
||||||
|
return token;
|
||||||
|
}
|
||||||
|
|
||||||
else if (colon_token)
|
if (colon_token)
|
||||||
return colon_token + 1;
|
return colon_token + 1;
|
||||||
|
|
||||||
else if (name)
|
else if (name)
|
||||||
|
Reference in New Issue
Block a user