forked from qt-creator/qt-creator
C++: handle destructor names with template parameters.
Change-Id: I74b4fd5e043db935abc18345b303d294b71e8fc2 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
This commit is contained in:
10
src/libs/3rdparty/cplusplus/AST.cpp
vendored
10
src/libs/3rdparty/cplusplus/AST.cpp
vendored
@@ -963,16 +963,18 @@ unsigned DestructorNameAST::firstToken() const
|
||||
{
|
||||
if (tilde_token)
|
||||
return tilde_token;
|
||||
if (identifier_token)
|
||||
return identifier_token;
|
||||
if (unqualified_name)
|
||||
if (unsigned candidate = unqualified_name->firstToken())
|
||||
return candidate;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/** \generated */
|
||||
unsigned DestructorNameAST::lastToken() const
|
||||
{
|
||||
if (identifier_token)
|
||||
return identifier_token + 1;
|
||||
if (unqualified_name)
|
||||
if (unsigned candidate = unqualified_name->lastToken())
|
||||
return candidate;
|
||||
if (tilde_token)
|
||||
return tilde_token + 1;
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user