forked from qt-creator/qt-creator
C++: add semantic support for C++11 alias decls.
Task-number: QTCREATORBUG-9386 Change-Id: Ia68f3866c122ca5261dd73b2c740b47fb15744fc Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
c2d6081a6c
commit
e2a727c450
10
src/libs/3rdparty/cplusplus/AST.cpp
vendored
10
src/libs/3rdparty/cplusplus/AST.cpp
vendored
@@ -4419,8 +4419,9 @@ unsigned AliasDeclarationAST::firstToken() const
|
||||
{
|
||||
if (using_token)
|
||||
return using_token;
|
||||
if (identifier_token)
|
||||
return identifier_token;
|
||||
if (name)
|
||||
if (unsigned candidate = name->firstToken())
|
||||
return candidate;
|
||||
if (equal_token)
|
||||
return equal_token;
|
||||
if (typeId)
|
||||
@@ -4441,8 +4442,9 @@ unsigned AliasDeclarationAST::lastToken() const
|
||||
return candidate;
|
||||
if (equal_token)
|
||||
return equal_token + 1;
|
||||
if (identifier_token)
|
||||
return identifier_token + 1;
|
||||
if (name)
|
||||
if (unsigned candidate = name->lastToken())
|
||||
return candidate;
|
||||
if (using_token)
|
||||
return using_token + 1;
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user