Updated add_new_check.py to create checker tests in the new directory

llvm-svn: 374551
This commit is contained in:
Dmitri Gribenko 2019-10-11 13:46:55 +00:00
parent d103e2d267
commit aa87b081cd
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ def add_release_notes(module_path, module, check_name):
# 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: