diff options
| author | Jonas Toth <jonas.toth@gmail.com> | 2018-10-04 16:39:41 +0000 |
|---|---|---|
| committer | Jonas Toth <jonas.toth@gmail.com> | 2018-10-04 16:39:41 +0000 |
| commit | 8920428376464c64d690211564f5630425cc4f46 (patch) | |
| tree | 207c8c687c9651f8dd425f5ba10c7093c03ecca8 /clang-tools-extra/test/clang-tidy/bugprone-argument-comment.cpp | |
| parent | 0451440f89abe66cca188b49f3a2716d2d72075d (diff) | |
| download | bcm5719-llvm-8920428376464c64d690211564f5630425cc4f46.tar.gz bcm5719-llvm-8920428376464c64d690211564f5630425cc4f46.zip | |
[clang-tidy] fix failing unit tests
The removal from the FIX-IT notes through the check-clang-tidy
script was done incorrect. I did not detect beforehand but adjusted
the script and tests accordingly
llvm-svn: 343797
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/bugprone-argument-comment.cpp')
| -rw-r--r-- | clang-tools-extra/test/clang-tidy/bugprone-argument-comment.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/clang-tools-extra/test/clang-tidy/bugprone-argument-comment.cpp b/clang-tools-extra/test/clang-tidy/bugprone-argument-comment.cpp index 53b9726f58c..08f87170c42 100644 --- a/clang-tools-extra/test/clang-tidy/bugprone-argument-comment.cpp +++ b/clang-tools-extra/test/clang-tidy/bugprone-argument-comment.cpp @@ -47,8 +47,7 @@ void templates() { variadic(/*xxx=*/0, /*yyy=*/1); variadic2(/*zzU=*/0, /*xxx=*/1, /*yyy=*/2); // CHECK-NOTES: [[@LINE-1]]:13: warning: argument name 'zzU' in comment does not match parameter name 'zzz' - // CHECK-NOTES: [[@LINE-2]]:13: note: FIX-IT applied suggested code changes - // CHECK-NOTES: :[[@LINE-7]]:20: note: 'zzz' declared here + // CHECK-NOTES: :[[@LINE-6]]:20: note: 'zzz' declared here // CHECK-FIXES: variadic2(/*zzz=*/0, /*xxx=*/1, /*yyy=*/2); } @@ -76,16 +75,14 @@ namespace OtherEditDistanceAboveThreshold { void f5(int xxx, int yyy); void g() { f5(/*Zxx=*/0, 0); } // CHECK-NOTES: [[@LINE-1]]:15: warning: argument name 'Zxx' in comment does not match parameter name 'xxx' -// CHECK-NOTES: [[@LINE-2]]:15: note: FIX-IT applied suggested code changes -// CHECK-NOTES: [[@LINE-4]]:13: note: 'xxx' declared here +// CHECK-NOTES: [[@LINE-3]]:13: note: 'xxx' declared here // CHECK-FIXES: void g() { f5(/*xxx=*/0, 0); } struct C2 { C2(int xxx, int yyy); }; C2 c2(/*Zxx=*/0, 0); // CHECK-NOTES: [[@LINE-1]]:7: warning: argument name 'Zxx' in comment does not match parameter name 'xxx' -// CHECK-NOTES: [[@LINE-2]]:7: note: FIX-IT applied suggested code changes -// CHECK-NOTES: [[@LINE-5]]:10: note: 'xxx' declared here +// CHECK-NOTES: [[@LINE-4]]:10: note: 'xxx' declared here // CHECK-FIXES: C2 c2(/*xxx=*/0, 0); } |

