[clang-tools-extra] r374551 - Updated add_new_check.py to create checker tests in the new directory

Dmitri Gribenko via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 11 06:46:55 PDT 2019


Author: gribozavr
Date: Fri Oct 11 06:46:55 2019
New Revision: 374551

URL: http://llvm.org/viewvc/llvm-project?rev=374551&view=rev
Log:
Updated add_new_check.py to create checker tests in the new directory

Modified:
    clang-tools-extra/trunk/clang-tidy/add_new_check.py

Modified: clang-tools-extra/trunk/clang-tidy/add_new_check.py
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/add_new_check.py?rev=374551&r1=374550&r2=374551&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/add_new_check.py (original)
+++ clang-tools-extra/trunk/clang-tidy/add_new_check.py Fri Oct 11 06:46:55 2019
@@ -269,7 +269,7 @@ def add_release_notes(module_path, modul
 # Adds a test for the check.
 def write_test(module_path, module, check_name, test_extension):
   check_name_dashes = module + '-' + check_name
-  filename = os.path.normpath(os.path.join(module_path, '../../test/clang-tidy',
+  filename = os.path.normpath(os.path.join(module_path, '../../test/clang-tidy/checkers',
                                            check_name_dashes + '.' + test_extension))
   print('Creating %s...' % filename)
   with open(filename, 'w') as f:




More information about the cfe-commits mailing list