From ca00b874a75d8cd64f9768d21959a530b928c6dc Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 17 Aug 2022 18:10:53 +0200 Subject: 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: Reviewed-by: hjk --- src/libs/3rdparty/cplusplus/ASTMatcher.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libs/3rdparty/cplusplus/ASTMatcher.h') diff --git a/src/libs/3rdparty/cplusplus/ASTMatcher.h b/src/libs/3rdparty/cplusplus/ASTMatcher.h index 47d9ecf5bf5..c243e18b7bb 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); -- cgit v1.2.3