[clang] [clang] Remove the EnableLifetimeWarnings flag in lifetime analysis. (PR #105884)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 26 03:01:00 PDT 2024


================
@@ -461,15 +457,15 @@ static void visitFunctionCallArguments(IndirectLocalPath &Path, Expr *Call,
        I != N; ++I) {
     if (CheckCoroCall || Callee->getParamDecl(I)->hasAttr<LifetimeBoundAttr>())
       VisitLifetimeBoundArg(Callee->getParamDecl(I), Args[I]);
-    else if (EnableLifetimeWarnings && I == 0) {
+    else if (EnableGSLAnalysis && I == 0) { // GSL
----------------
hokein wrote:

Done.

https://github.com/llvm/llvm-project/pull/105884


More information about the cfe-commits mailing list