[clang-tools-extra] r246170 - [clang-tidy] Renamed a test file to <check-name>.cpp.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 27 11:03:38 PDT 2015


Author: alexfh
Date: Thu Aug 27 13:03:37 2015
New Revision: 246170

URL: http://llvm.org/viewvc/llvm-project?rev=246170&view=rev
Log:
[clang-tidy] Renamed a test file to <check-name>.cpp.

Added:
    clang-tools-extra/trunk/test/clang-tidy/misc-argument-comment.cpp
      - copied unchanged from r245699, clang-tools-extra/trunk/test/clang-tidy/arg-comments.cpp
Removed:
    clang-tools-extra/trunk/test/clang-tidy/arg-comments.cpp

Removed: clang-tools-extra/trunk/test/clang-tidy/arg-comments.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/arg-comments.cpp?rev=246169&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/clang-tidy/arg-comments.cpp (original)
+++ clang-tools-extra/trunk/test/clang-tidy/arg-comments.cpp (removed)
@@ -1,40 +0,0 @@
-// RUN: %python %S/check_clang_tidy.py %s misc-argument-comment %t
-
-// FIXME: clang-tidy should provide a -verify mode to make writing these checks
-// easier and more accurate.
-
-void ffff(int xxxx, int yyyy);
-
-void f(int x, int y);
-void g() {
-  // CHECK-MESSAGES: [[@LINE+4]]:5: warning: argument name 'y' in comment does not match parameter name 'x'
-  // CHECK-MESSAGES: :[[@LINE-3]]:12: note: 'x' declared here
-  // CHECK-MESSAGES: [[@LINE+2]]:14: warning: argument name 'z' in comment does not match parameter name 'y'
-  // CHECK-MESSAGES: :[[@LINE-5]]:19: note: 'y' declared here
-  f(/*y=*/0, /*z=*/0);
-}
-
-struct Closure {};
-
-template <typename T1, typename T2>
-Closure *NewCallback(void (*f)(T1, T2), T1 arg1, T2 arg2) { return nullptr; }
-
-template <typename T1, typename T2>
-Closure *NewPermanentCallback(void (*f)(T1, T2), T1 arg1, T2 arg2) { return nullptr; }
-
-void h() {
-  (void)NewCallback(&ffff, /*xxxx=*/11, /*yyyy=*/22);
-  (void)NewPermanentCallback(&ffff, /*xxxx=*/11, /*yyyy=*/22);
-}
-
-template<typename... Args>
-void variadic(Args&&... args);
-
-template<typename... Args>
-void variadic2(int zzz, Args&&... args);
-
-void templates() {
-  variadic(/*xxx=*/0, /*yyy=*/1);
-  variadic2(/*zzZ=*/0, /*xxx=*/1, /*yyy=*/2);
-  // CHECK-MESSAGES: [[@LINE-1]]:13: warning: argument name 'zzZ' in comment does not match parameter name 'zzz'
-}




More information about the cfe-commits mailing list