================
@@ -155,7 +166,9 @@ void UseRangesCheck::registerMatchers(MatchFinder *Finder) {
                 ast_matchers::internal::DynTypedMatcher::VO_AnyOf,
                 ASTNodeKind::getFromNodeKind<CallExpr>(),
                 std::move(TotalMatchers))
-                .convertTo<CallExpr>()),
+                .convertTo<CallExpr>(),
+            anyOf(hasStructuredBindingResult(StructuredBindingResult),
+                  unless(hasStructuredBindingResult()))),
----------------
vbvictor wrote:

You can probably use `optionally(hasStructuredBindingResult(...))`

https://github.com/llvm/llvm-project/pull/196038
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to