summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-08-04 14:54:54 +0000
committerAlexander Kornienko <alexfh@google.com>2016-08-04 14:54:54 +0000
commit6b2a4d5e8f74b2fdbfc1567a7e81994f74891baf (patch)
tree9554f898959da80b0b25a4ce9240116bf508216a /clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp
parentc2370b810de8537744d82ed947ca8afbaa683d0b (diff)
downloadbcm5719-llvm-6b2a4d5e8f74b2fdbfc1567a7e81994f74891baf.tar.gz
bcm5719-llvm-6b2a4d5e8f74b2fdbfc1567a7e81994f74891baf.zip
[clang-tidy] misc-argument-comment non-strict mode
Summary: The misc-argument-comment check now ignores leading and trailing underscores and case. The new `StrictMode` local/global option can be used to switch back to strict checking. Add getLocalOrGlobal version for integral types, minor cleanups. Reviewers: hokein, aaron.ballman Subscribers: aaron.ballman, Prazek, cfe-commits Differential Revision: https://reviews.llvm.org/D23135 llvm-svn: 277729
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp')
-rw-r--r--clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp b/clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp
index a42b2e5660c..a3f00b83ca1 100644
--- a/clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp
+++ b/clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp
@@ -23,10 +23,10 @@ TEST(ArgumentCommentCheckTest, ThisEditDistanceAboveThreshold) {
TEST(ArgumentCommentCheckTest, OtherEditDistanceAboveThreshold) {
EXPECT_EQ("void f(int xxx, int yyy); void g() { f(/*xxx=*/0, 0); }",
runCheckOnCode<ArgumentCommentCheck>(
- "void f(int xxx, int yyy); void g() { f(/*Xxx=*/0, 0); }"));
+ "void f(int xxx, int yyy); void g() { f(/*Zxx=*/0, 0); }"));
EXPECT_EQ("struct C { C(int xxx, int yyy); }; C c(/*xxx=*/0, 0);",
runCheckOnCode<ArgumentCommentCheck>(
- "struct C { C(int xxx, int yyy); }; C c(/*Xxx=*/0, 0);"));
+ "struct C { C(int xxx, int yyy); }; C c(/*Zxx=*/0, 0);"));
}
TEST(ArgumentCommentCheckTest, OtherEditDistanceBelowThreshold) {
OpenPOWER on IntegriCloud