diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2022-08-17 18:10:53 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-08-23 13:52:11 +0000 |
commit | ca00b874a75d8cd64f9768d21959a530b928c6dc (patch) | |
tree | 8292188e0ac3952854cd653bfa573c1cf94772de /src/libs/3rdparty/cplusplus/ASTMatcher.h | |
parent | 5fab54d95aadaf28c4f7d10e601cc12feb682429 (diff) |
CPlusPlus: Support structured bindings
While we do recommend clangd for modern code bases, we should still be
able to parse basic language constructs.
Fixes: QTCREATORBUG-27975
Change-Id: I189b991685a5cd5f62f2afce77878b60c895e8f9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/ASTMatcher.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/ASTMatcher.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/ASTMatcher.h b/src/libs/3rdparty/cplusplus/ASTMatcher.h index 47d9ecf5bf..c243e18b7b 100644 --- a/src/libs/3rdparty/cplusplus/ASTMatcher.h +++ b/src/libs/3rdparty/cplusplus/ASTMatcher.h @@ -63,6 +63,7 @@ public: virtual bool match(DeclarationStatementAST *node, DeclarationStatementAST *pattern); virtual bool match(DeclaratorAST *node, DeclaratorAST *pattern); virtual bool match(DeclaratorIdAST *node, DeclaratorIdAST *pattern); + virtual bool match(DecompositionDeclaratorAST *node, DecompositionDeclaratorAST *pattern); virtual bool match(DecltypeSpecifierAST *node, DecltypeSpecifierAST *pattern); virtual bool match(DeleteExpressionAST *node, DeleteExpressionAST *pattern); virtual bool match(DesignatedInitializerAST *node, DesignatedInitializerAST *pattern); |