[clang] [clang] Remove the EnableLifetimeWarnings flag in lifetime analysis. (PR #105884)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 26 01:10:18 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
----------------
usx95 wrote:
nit: remove // GSL comment.
https://github.com/llvm/llvm-project/pull/105884
More information about the cfe-commits
mailing list