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/ASTMatch0.cpp
vendored
16
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
@@ -56,17 +56,25 @@ bool SimpleSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AttributeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
bool AlignmentSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (AttributeSpecifierAST *_other = pattern->asAttributeSpecifier())
|
||||
if (AlignmentSpecifierAST *_other = pattern->asAlignmentSpecifier())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AttributeAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
bool GnuAttributeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (AttributeAST *_other = pattern->asAttribute())
|
||||
if (GnuAttributeSpecifierAST *_other = pattern->asGnuAttributeSpecifier())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool GnuAttributeAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (GnuAttributeAST *_other = pattern->asGnuAttribute())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user