[PATCH] D55044: [cfe-dev] clang-tidy check for Abseil make_unique

2018-11-28 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Thanks for working on this. Semi-duplicate of D50852 Please see discussion there. It should not be an abseil-specific check, the prefix (`std`,`abseil`), and the function (`make_unique`) should be a config option, and it should likely

[PATCH] D55044: [cfe-dev] clang-tidy check for Abseil make_unique

2018-11-28 Thread Andy Zhang via Phabricator via cfe-commits
axzhang created this revision. axzhang added reviewers: klimek, EricWF. axzhang added a project: clang-tools-extra. Herald added a subscriber: mgorny. Add a new check for https://abseil.io/tips/126, to detect uses of constructing a std::unique_ptr with a call to new, and recommend substituting wi