diff options
author | Christian Kamm <kamm@incasoftware.de> | 2012-09-18 10:45:10 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-09-19 11:56:33 +0200 |
commit | 871112119714c422655f3429d1f190cf6502a97e (patch) | |
tree | b69be607f6888034ee429df2c68d8c520c3b2c9e /src/libs/3rdparty/cplusplus/ASTMatch0.cpp | |
parent | 9bd86e7d683964d879eef0d98d25809aac102ed9 (diff) |
C++11: Parse alias declarations.
The parser no longer fails declarations like:
using Foo = std::vector<int>::iterator;
Change-Id: Ib3a552ebbe0147fa138db6448a52cdba8f9b9207
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 e51604fe45..a1bdb656e8 100644 --- a/src/libs/3rdparty/cplusplus/ASTMatch0.cpp +++ b/src/libs/3rdparty/cplusplus/ASTMatch0.cpp @@ -592,6 +592,14 @@ bool NamespaceAliasDefinitionAST::match0(AST *pattern, ASTMatcher *matcher) return false; } +bool AliasDeclarationAST::match0(AST *pattern, ASTMatcher *matcher) +{ + if (AliasDeclarationAST *_other = pattern->asAliasDeclaration()) + return matcher->match(this, _other); + + return false; +} + bool ExpressionListParenAST::match0(AST *pattern, ASTMatcher *matcher) { if (ExpressionListParenAST *_other = pattern->asExpressionListParen()) |