[clang-tidy] Fix handling of parens around new expressions in make_<smartptr> checks.
authorAlexander Kornienko <alexfh@google.com>
Tue, 9 Oct 2018 15:58:18 +0000 (15:58 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 9 Oct 2018 15:58:18 +0000 (15:58 +0000)
commitc968c988806b3acf612ffa645f570ef62860c9d9
tree0078afb79f2642e4a2d9ce7e2fb073e937d1fdf1
parenta461174cfd36859423fe75f7b4c17b32ce1f41ee
[clang-tidy] Fix handling of parens around new expressions in make_<smartptr> checks.

Summary:
Extra parentheses around a new expression result in incorrect code
after applying fixes.

Reviewers: hokein

Reviewed By: hokein

Subscribers: xazax.hun, cfe-commits

Differential Revision: https://reviews.llvm.org/D52989

llvm-svn: 344058
clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.h
clang-tools-extra/test/clang-tidy/modernize-make-shared.cpp
clang-tools-extra/test/clang-tidy/modernize-make-unique.cpp