From 295aa09dd2288525f85cc2defb06f940c5405c87 Mon Sep 17 00:00:00 2001 From: Jonas Toth Date: Fri, 9 Nov 2018 20:54:06 +0000 Subject: [ASTMatchers] overload ignoringParens for Expr Summary: This patch allows fixing PR39583. Reviewers: aaron.ballman, sbenza, klimek Reviewed By: aaron.ballman Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D54307 llvm-svn: 346554 --- clang/docs/LibASTMatchersReference.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'clang/docs') diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index 7db62edfa4db..4ba2b6233580 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -5552,6 +5552,17 @@ would only match the declaration for a. +Matcher<Expr>ignoringParensMatcher<Expr> InnerMatcher +
Overload ignoringParens for Expr.
+
+Given
+  const char* str = ("my-string");
+The matcher
+  implicitCastExpr(hasSourceExpression(ignoringParens(stringLiteral())))
+would match the implicit cast resulting from the assignment.
+
+ + Matcher<FieldDecl>hasInClassInitializerMatcher<Expr> InnerMatcher
Matches non-static data members that have an in-class initializer.
 
-- 
cgit v1.2.3