[PATCH] D55044: [clang-tidy] check for Abseil make_unique
Don Hinton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 18 11:16:42 PDT 2019
hintonda added inline comments.
================
Comment at: clang-tidy/abseil/AbseilTidyModule.cpp:77
+ Opts["abseil-make-unique.MakeSmartPtrFunction"] = "absl::make_unique";
+ Opts["abseil-make-unique.IgnoreListInit"] = true;
+ return Options;
----------------
This is defined as `typedef std::map<std::string, std::string> OptionMap;`, so you need to assign a string, not a literal `true` value. hth...
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55044/new/
https://reviews.llvm.org/D55044
More information about the cfe-commits
mailing list