forked from qt-creator/qt-creator
Added support for override/final and enum classes
Change-Id: I6dfe9dd606781046ff5a1ed61315741d2f332cb8 Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
This commit is contained in:
committed by
Christian Kamm
parent
656ecfbf59
commit
95c5ab2746
4
src/libs/3rdparty/cplusplus/AST.cpp
vendored
4
src/libs/3rdparty/cplusplus/AST.cpp
vendored
@@ -523,6 +523,8 @@ unsigned ClassSpecifierAST::firstToken() const
|
||||
if (name)
|
||||
if (unsigned candidate = name->firstToken())
|
||||
return candidate;
|
||||
if (final_token)
|
||||
return final_token;
|
||||
if (colon_token)
|
||||
return colon_token;
|
||||
if (base_clause_list)
|
||||
@@ -557,6 +559,8 @@ unsigned ClassSpecifierAST::lastToken() const
|
||||
return candidate;
|
||||
if (colon_token)
|
||||
return colon_token + 1;
|
||||
if (final_token)
|
||||
return final_token + 1;
|
||||
if (name)
|
||||
if (unsigned candidate = name->lastToken())
|
||||
return candidate;
|
||||
|
||||
Reference in New Issue
Block a user