summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2017-03-17 08:40:07 +0000
committerAlexander Kornienko <alexfh@google.com>2017-03-17 08:40:07 +0000
commit7bcf7516dfb4412100e89611f1f88c8f4bbed330 (patch)
treea77bd25d0370d7b2c835c0545d389b5d42b6ae68 /clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp
parenta8d4097445a64e365d9196bca0ddafa47bfe7403 (diff)
downloadbcm5719-llvm-7bcf7516dfb4412100e89611f1f88c8f4bbed330.tar.gz
bcm5719-llvm-7bcf7516dfb4412100e89611f1f88c8f4bbed330.zip
[clang-tidy] Ignore deleted members in google-explicit-constructor.
This fixes http://llvm.org/PR32221. llvm-svn: 298052
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp b/clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp
index 4143e937c71..cfd42821270 100644
--- a/clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp
+++ b/clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp
@@ -40,6 +40,8 @@ struct A {
explicit A(void *x, void *y) {}
explicit operator bool() const { return true; }
+ operator double() const = delete;
+
explicit A(const A& a) {}
// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: copy constructor should not be declared explicit [google-explicit-constructor]
// CHECK-FIXES: {{^ }}A(const A& a) {}
OpenPOWER on IntegriCloud