diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2012-09-17 13:47:18 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-09-19 11:53:46 +0200 |
commit | ecd54059d3a0a18fd5e18c48b2c69761324d22c5 (patch) | |
tree | 139da110592d931f53037df4d927993eb9d97efd /src/libs/3rdparty/cplusplus/ASTMatch0.cpp | |
parent | 1aed32d86677b435eada4f8718bab3356630d74f (diff) |
C++11: Add alignof() expression.
Change-Id: Id3fb30b9a16ea724bab0d5b05e8cbddb0064e6eb
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/ASTMatch0.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/ASTMatch0.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/ASTMatch0.cpp b/src/libs/3rdparty/cplusplus/ASTMatch0.cpp index 26acc7290a..e51604fe45 100644 --- a/src/libs/3rdparty/cplusplus/ASTMatch0.cpp +++ b/src/libs/3rdparty/cplusplus/ASTMatch0.cpp @@ -776,6 +776,14 @@ bool SizeofExpressionAST::match0(AST *pattern, ASTMatcher *matcher) return false; } +bool AlignofExpressionAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (AlignofExpressionAST *_other = pattern->asAlignofExpression()) + return matcher->match(this, _other); + + return false; +} + bool PointerLiteralAST::match0(AST *pattern, ASTMatcher *matcher) { if (PointerLiteralAST *_other = pattern->asPointerLiteral()) |