diff options
author | Haojian Wu <hokein@google.com> | 2019-06-03 08:14:15 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2019-06-03 08:14:15 +0000 |
commit | ceb0cc54f9d647c2fed3ae878ba91b95f9740777 (patch) | |
tree | 4b6b8a6de1ab4454a458ffd54a38245ffe76b586 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 404a679e1d0c19bf504776fd10aaca411462da5e (diff) | |
download | llvm-ceb0cc54f9d647c2fed3ae878ba91b95f9740777.zip llvm-ceb0cc54f9d647c2fed3ae878ba91b95f9740777.tar.gz llvm-ceb0cc54f9d647c2fed3ae878ba91b95f9740777.tar.bz2 |
[clang-tidy] Fix make-unique check to work in C++17 mode.
Summary:
Previously, we intended to omit the check fix to the case when constructor has
any braced-init-list argument. But the HasListInitializedArgument was not
correct to handle all cases (Foo(Bar{1, 2}) will return false in C++14
mode).
This patch fixes it, corrects the tests, and makes the check to run at C++17 mode.
Reviewers: gribozavr
Subscribers: xazax.hun, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D62736
llvm-svn: 362361
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions