]> granicus.if.org Git - clang/commitdiff
[NFC] Add comments to some bool arguments for better readability
authorGabor Horvath <xazax.hun@gmail.com>
Mon, 26 Aug 2019 17:03:01 +0000 (17:03 +0000)
committerGabor Horvath <xazax.hun@gmail.com>
Mon, 26 Aug 2019 17:03:01 +0000 (17:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369928 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaInit.cpp

index e2a9d516008845ac11aaaaed624ab8f5c20084f4..3aa38b27c51b9718e3bcee00719ec7978616e013 100644 (file)
@@ -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();
   };