forked from OSchip/llvm-project
[NFC] Add comments to some bool arguments for better readability
llvm-svn: 369928
This commit is contained in:
parent
b7075e40f3
commit
3ba0f3c9b7
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue