forked from qt-creator/qt-creator
C++: Support alignas in C++11 mode.
Change-Id: Ifa81a481bf92b5b71495a105ae292f3e9895f704 Task-number: QTCREATORBUG-9279 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
d2db54b451
commit
45b1169d06
16
src/libs/3rdparty/cplusplus/Bind.cpp
vendored
16
src/libs/3rdparty/cplusplus/Bind.cpp
vendored
@@ -303,14 +303,14 @@ const Name *Bind::objCSelectorArgument(ObjCSelectorArgumentAST *ast, bool *hasAr
|
||||
return identifier(ast->name_token);
|
||||
}
|
||||
|
||||
bool Bind::visit(AttributeAST *ast)
|
||||
bool Bind::visit(GnuAttributeAST *ast)
|
||||
{
|
||||
(void) ast;
|
||||
CPP_CHECK(!"unreachable");
|
||||
return false;
|
||||
}
|
||||
|
||||
void Bind::attribute(AttributeAST *ast)
|
||||
void Bind::attribute(GnuAttributeAST *ast)
|
||||
{
|
||||
if (! ast)
|
||||
return;
|
||||
@@ -2902,12 +2902,20 @@ bool Bind::visit(SimpleSpecifierAST *ast)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Bind::visit(AttributeSpecifierAST *ast)
|
||||
bool Bind::visit(AlignmentSpecifierAST *ast)
|
||||
{
|
||||
// Prevent visiting the type-id or alignment expression from changing the currently
|
||||
// calculated type:
|
||||
expression(ast->typeIdExprOrAlignmentExpr);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Bind::visit(GnuAttributeSpecifierAST *ast)
|
||||
{
|
||||
// unsigned attribute_token = ast->attribute_token;
|
||||
// unsigned first_lparen_token = ast->first_lparen_token;
|
||||
// unsigned second_lparen_token = ast->second_lparen_token;
|
||||
for (AttributeListAST *it = ast->attribute_list; it; it = it->next) {
|
||||
for (GnuAttributeListAST *it = ast->attribute_list; it; it = it->next) {
|
||||
this->attribute(it->value);
|
||||
}
|
||||
// unsigned first_rparen_token = ast->first_rparen_token;
|
||||
|
||||
Reference in New Issue
Block a user