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/Parser.h | |
parent | 9bd86e7d683964d879eef0d98d25809aac102ed9 (diff) | |
download | qt-creator-871112119714c422655f3429d1f190cf6502a97e.tar.gz |
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/Parser.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/Parser.h b/src/libs/3rdparty/cplusplus/Parser.h index da472097c7..cb0c7803c5 100644 --- a/src/libs/3rdparty/cplusplus/Parser.h +++ b/src/libs/3rdparty/cplusplus/Parser.h @@ -191,6 +191,7 @@ public: bool parseUnqualifiedName(NameAST *&node, bool acceptTemplateId = true); bool parseUsing(DeclarationAST *&node); bool parseUsingDirective(DeclarationAST *&node); + bool parseAliasDeclaration(DeclarationAST *&node); bool parseWhileStatement(StatementAST *&node); void parseExpressionWithOperatorPrecedence(ExpressionAST *&lhs, int minPrecedence); @@ -256,6 +257,7 @@ public: void skipUntilDeclaration(); bool skipUntilStatement(); bool skip(int l, int r); + int find(int token, int stopAt); bool lookAtTypeParameter() const; bool lookAtCVQualifier() const; |