[NFC] Add comments to some bool arguments for better readability

llvm-svn: 369928
This commit is contained in:
Gabor Horvath 2019-08-26 17:03:01 +00:00
parent b7075e40f3
commit 3ba0f3c9b7
1 changed files with 8 additions and 4 deletions

View File

@ -6648,9 +6648,11 @@ static void handleGslAnnotatedTypes(IndirectLocalPath &Path, Expr *Call,
Path.push_back({IndirectLocalPathEntry::GslPointerInit, Arg, D}); Path.push_back({IndirectLocalPathEntry::GslPointerInit, Arg, D});
if (Arg->isGLValue()) if (Arg->isGLValue())
visitLocalsRetainedByReferenceBinding(Path, Arg, RK_ReferenceBinding, visitLocalsRetainedByReferenceBinding(Path, Arg, RK_ReferenceBinding,
Visit, true); Visit,
/*EnableLifetimeWarnings=*/true);
else else
visitLocalsRetainedByInitializer(Path, Arg, Visit, true, true); visitLocalsRetainedByInitializer(Path, Arg, Visit, true,
/*EnableLifetimeWarnings=*/true);
Path.pop_back(); Path.pop_back();
}; };
@ -6725,9 +6727,11 @@ static void visitLifetimeBoundArguments(IndirectLocalPath &Path, Expr *Call,
Path.push_back({IndirectLocalPathEntry::LifetimeBoundCall, Arg, D}); Path.push_back({IndirectLocalPathEntry::LifetimeBoundCall, Arg, D});
if (Arg->isGLValue()) if (Arg->isGLValue())
visitLocalsRetainedByReferenceBinding(Path, Arg, RK_ReferenceBinding, visitLocalsRetainedByReferenceBinding(Path, Arg, RK_ReferenceBinding,
Visit, false); Visit,
/*EnableLifetimeWarnings=*/false);
else else
visitLocalsRetainedByInitializer(Path, Arg, Visit, true, false); visitLocalsRetainedByInitializer(Path, Arg, Visit, true,
/*EnableLifetimeWarnings=*/false);
Path.pop_back(); Path.pop_back();
}; };