r369928 - [NFC] Add comments to some bool arguments for better readability
Gabor Horvath via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 26 10:03:02 PDT 2019
Author: xazax
Date: Mon Aug 26 10:03:01 2019
New Revision: 369928
URL: http://llvm.org/viewvc/llvm-project?rev=369928&view=rev
Log:
[NFC] Add comments to some bool arguments for better readability
Modified:
cfe/trunk/lib/Sema/SemaInit.cpp
Modified: cfe/trunk/lib/Sema/SemaInit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInit.cpp?rev=369928&r1=369927&r2=369928&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaInit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInit.cpp Mon Aug 26 10:03:01 2019
@@ -6648,9 +6648,11 @@ static void handleGslAnnotatedTypes(Indi
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(
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();
};
More information about the cfe-commits
mailing list