summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/macros.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-11-27 11:11:47 +0000
committerAlexander Kornienko <alexfh@google.com>2014-11-27 11:11:47 +0000
commit15c5e6a5975966255aeefdd7aab7006edb497fcd (patch)
tree3b9fb08e88ed226bc955175758b8f35a77415b0d /clang-tools-extra/test/clang-tidy/macros.cpp
parent2190cd9ffa90c08f5aab6a55f84666ef635b939a (diff)
downloadbcm5719-llvm-15c5e6a5975966255aeefdd7aab7006edb497fcd.tar.gz
bcm5719-llvm-15c5e6a5975966255aeefdd7aab7006edb497fcd.zip
[clang-tidy] Support initializer_list in google-explicit-constructor check
Summary: According to the Google C++ Style Guide, constructors taking a single std::initializer_list<> should not be marked explicit. This change also changes the messages according to conventions used in Clang diagnostics: no capitalization of the first letter, no trailing dot. Reviewers: djasper Reviewed By: djasper Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D6427 llvm-svn: 222878
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/macros.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/macros.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/macros.cpp b/clang-tools-extra/test/clang-tidy/macros.cpp
index dc5d131dcb9..91e38acdb11 100644
--- a/clang-tools-extra/test/clang-tidy/macros.cpp
+++ b/clang-tools-extra/test/clang-tidy/macros.cpp
@@ -3,5 +3,5 @@
#define Q(name) class name { name(int i); }
Q(A);
-// CHECK: :[[@LINE-1]]:3: warning: Single-argument constructors must be explicit [google-explicit-constructor]
+// CHECK: :[[@LINE-1]]:3: warning: single-argument constructors must be explicit [google-explicit-constructor]
// CHECK: :3:30: note: expanded from macro 'Q'
OpenPOWER on IntegriCloud