================
@@ -439,6 +378,8 @@ static void visitLifetimeBoundArguments(IndirectLocalPath
&Path, Expr *Call,
if (!Callee)
return;
+ bool EnableGSLAnalysis = !Callee->getASTContext().getDiagnostics().isIgnored(
----------------
hokein wrote:
> Can we move this to VisitGSLPointerArg and do all the calls to it
> unconditionally ?
Yeah, we can do that. The code is a bit tricky now, and I think keeping the `if
(EnableGSLAnalysis)` condition make it easier to understand and reason about
(explicitly indicating we're handling the GSL case).
https://github.com/llvm/llvm-project/pull/104906
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits