[PATCH] D36786: [clang-tidy] Don't generate fixes for initializer_list constructor in make_unique check.
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 16 08:33:19 PDT 2017
alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.
LG
================
Comment at: test/clang-tidy/modernize-make-unique.cpp:253
// CHECK-MESSAGES: :[[@LINE-1]]:28: warning: use std::make_unique instead
- // CHECK-FIXES: std::unique_ptr<E> PE2 = std::make_unique<E>({1, 2});
----------------
I'd leave CHECK-FIXES with the original text to ensure no unwanted replacements are performed.
https://reviews.llvm.org/D36786
More information about the cfe-commits
mailing list