Based on abseil tip of the week 126: https://abseil.io/tips/126
Created a check which looks for instances of a factory function that uses a non-public constructor and return a std::unique_ptr<T>.
Differential D57435
[clang-tidy] Add abseil-wrap-unique check Dosi-Dough on Jan 29 2019, 7:21 PM. Authored by
Details
Based on abseil tip of the week 126: https://abseil.io/tips/126 Created a check which looks for instances of a factory function that uses a non-public constructor and return a std::unique_ptr<T>.
Diff Detail Event Timeline
Comment Actions This is the clang-tidy revision that mgiht have caught the str().length() > 0 case D56644: [clang-tidy] readability-container-size-empty handle std::string length() adding a a cross reference for that work.
Comment Actions Hi I was wondering if there were any other changes anyone recommends should be made to this revision? Comment Actions @EricWF @JonasToth I was wondering what other changes I should make to submit my check upstream? |
Unnecessary empty line.