From 6b2a4d5e8f74b2fdbfc1567a7e81994f74891baf Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Thu, 4 Aug 2016 14:54:54 +0000 Subject: [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 --- clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/unittests/clang-tidy/MiscModuleTest.cpp') 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( - "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( - "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) { -- cgit v1.2.3