The fix for auto new expression is illegal.
Details
Diff Detail
- Repository
- rCTE Clang Tools Extra
Event Timeline
clang-tidy/modernize/MakeSmartPtrCheck.cpp | ||
---|---|---|
258 | Drop the quotation marks. | |
test/clang-tidy/modernize-make-unique.cpp | ||
347 | It seems like we could also generate the correct replacement for the user here. PE1 = std::make_unique<decltype(E())>(); However, I feel like this isn't worth it in general and the correct behavior is to not diagnose in this situation in the first place -- I don't think anyone will find the make_unique<> version to be an improvement over the new auto() version. What do you think? |
test/clang-tidy/modernize-make-unique.cpp | ||
---|---|---|
347 | This seems reasonable to me. Also the new auto() is very rare even in our monolithic repository. |
LGTM with a minor typo to correct.
test/clang-tidy/modernize-make-unique.cpp | ||
---|---|---|
344 | warninags -> warnings |
Drop the quotation marks.