aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/cplusplus/ASTMatch0.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2014-07-15 12:37:19 +0200
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-07-22 16:43:51 +0200
commit45b1169d063321c72002dd732e920b87c219e0af (patch)
treea94302fdcc1554f63c346821a3bdb4bd57e603e2 /src/libs/3rdparty/cplusplus/ASTMatch0.cpp
parentd2db54b451bda4553ec171eb5802131a3a694f59 (diff)
C++: Support alignas in C++11 mode.
Change-Id: Ifa81a481bf92b5b71495a105ae292f3e9895f704 Task-number: QTCREATORBUG-9279 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/ASTMatch0.cpp')
-rw-r--r--src/libs/3rdparty/cplusplus/ASTMatch0.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/libs/3rdparty/cplusplus/ASTMatch0.cpp b/src/libs/3rdparty/cplusplus/ASTMatch0.cpp
index ff51efcd1a..b0e732b257 100644
--- a/src/libs/3rdparty/cplusplus/ASTMatch0.cpp
+++ b/src/libs/3rdparty/cplusplus/ASTMatch0.cpp
@@ -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;