From 3ba0f3c9b7f1c0227ed7771168fa9362cfea213e Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Mon, 26 Aug 2019 17:03:01 +0000 Subject: [PATCH] [NFC] Add comments to some bool arguments for better readability llvm-svn: 369928 --- clang/lib/Sema/SemaInit.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index e2a9d5160088..3aa38b27c51b 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -6648,9 +6648,11 @@ static void handleGslAnnotatedTypes(IndirectLocalPath &Path, Expr *Call, Path.push_back({IndirectLocalPathEntry::GslPointerInit, Arg, D}); if (Arg->isGLValue()) visitLocalsRetainedByReferenceBinding(Path, Arg, RK_ReferenceBinding, - Visit, true); + Visit, + /*EnableLifetimeWarnings=*/true); else - visitLocalsRetainedByInitializer(Path, Arg, Visit, true, true); + visitLocalsRetainedByInitializer(Path, Arg, Visit, true, + /*EnableLifetimeWarnings=*/true); Path.pop_back(); }; @@ -6725,9 +6727,11 @@ static void visitLifetimeBoundArguments(IndirectLocalPath &Path, Expr *Call, Path.push_back({IndirectLocalPathEntry::LifetimeBoundCall, Arg, D}); if (Arg->isGLValue()) visitLocalsRetainedByReferenceBinding(Path, Arg, RK_ReferenceBinding, - Visit, false); + Visit, + /*EnableLifetimeWarnings=*/false); else - visitLocalsRetainedByInitializer(Path, Arg, Visit, true, false); + visitLocalsRetainedByInitializer(Path, Arg, Visit, true, + /*EnableLifetimeWarnings=*/false); Path.pop_back(); };