diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-03-31 16:24:44 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-03-31 16:24:44 +0000 |
commit | 0b024619dfe4da40b6c8a7ef46bdc1815d11f7a7 (patch) | |
tree | 0414906bf29e84ce9e4dfb93fcca936aa322435f /clang-tools-extra/test/clang-tidy | |
parent | d399d94837e045fb189a5aa051743899052a1dd2 (diff) | |
download | bcm5719-llvm-0b024619dfe4da40b6c8a7ef46bdc1815d11f7a7.tar.gz bcm5719-llvm-0b024619dfe4da40b6c8a7ef46bdc1815d11f7a7.zip |
[clang-tidy] Clarify message for the google-explicit-constructor check
Use "constructors that are callable with a single argument" instead of
"single-argument constructors" when referring to constructors using default
arguments or parameter packs.
llvm-svn: 233702
Diffstat (limited to 'clang-tools-extra/test/clang-tidy')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp | 7 |
1 files changed, 6 insertions, 1 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 c9646765d07..a865733da62 100644 --- a/clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp +++ b/clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp @@ -49,8 +49,13 @@ struct A { // CHECK-FIXES: {{^ }}explicit A(int x1) {} A(double x2, double y = 3.14) {} - // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: single-argument constructors + // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: constructors that are callable with a single argument must be marked explicit [google-explicit-constructor] // CHECK-FIXES: {{^ }}explicit A(double x2, double y = 3.14) {} + + template <typename... T> + A(T&&... args); + // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: constructors that are callable with a single argument + // CHECK-FIXES: {{^ }}explicit A(T&&... args); }; struct B { |