forked from qt-creator/qt-creator
C++: Support ellipsis on variadic inheritance parsing
Change-Id: I571aefdb1f2aba88ba0c7710f16b6d8ad2e8f5a8 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
697479572f
commit
2a966a8917
5
src/libs/3rdparty/cplusplus/Parser.cpp
vendored
5
src/libs/3rdparty/cplusplus/Parser.cpp
vendored
@@ -3006,6 +3006,11 @@ bool Parser::parseBaseSpecifier(BaseSpecifierListAST *&node)
|
||||
if (! ast->name)
|
||||
error(cursor(), "expected class-name");
|
||||
|
||||
// a name can have ellipsis in case of C++11
|
||||
// note: the id must be unqualified then - TODO
|
||||
if (_languageFeatures.cxx11Enabled && LA() == T_DOT_DOT_DOT)
|
||||
ast->ellipsis_token = consumeToken();
|
||||
|
||||
node = new (_pool) BaseSpecifierListAST;
|
||||
node->value = ast;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user