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:
Johannes Lorenz
2015-02-25 21:22:16 +01:00
committed by Orgad Shaneh
parent 697479572f
commit 2a966a8917
10 changed files with 79 additions and 3 deletions

View File

@@ -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;