forked from qt-creator/qt-creator
C++11: Add alignof() expression.
Change-Id: Id3fb30b9a16ea724bab0d5b05e8cbddb0064e6eb Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
8
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
8
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user