[PATCH] D55044: [clang-tidy] check for Abseil make_unique
Don Hinton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 17 21:11:18 PDT 2019
hintonda added inline comments.
================
Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:69
+ IgnoreMacros(Options.getLocalOrGlobal("IgnoreMacros", true)),
+ IgnoreListInit(Options.get("IgnoreListInit", false)) {}
----------------
hintonda wrote:
> axzhang wrote:
> > hintonda wrote:
> > > You’re setting it false here.
> > I thought that false was the default value if the options do not contain "IgnoreListInit"?
> Do you have a test that passes this option? I didn’t see one.
I could be wrong, but when you do an Options.get(), that looks at what was passed on the commandline, and if it wasn't found, it sets the default provided.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55044/new/
https://reviews.llvm.org/D55044
More information about the cfe-commits
mailing list