summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2019-10-11 13:46:55 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2019-10-11 13:46:55 +0000
commitaa87b081cdff970c4e24ceb15d1aca367a1edbf8 (patch)
treec3f4a787a197d1553df90d81af43c7cb13eefe22
parentd103e2d267dbe34d8fcce931abb9752d96e2f9d6 (diff)
downloadbcm5719-llvm-aa87b081cdff970c4e24ceb15d1aca367a1edbf8.tar.gz
bcm5719-llvm-aa87b081cdff970c4e24ceb15d1aca367a1edbf8.zip
Updated add_new_check.py to create checker tests in the new directory
llvm-svn: 374551
-rwxr-xr-xclang-tools-extra/clang-tidy/add_new_check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/add_new_check.py b/clang-tools-extra/clang-tidy/add_new_check.py
index bba16ccc2ea..0a8a11b8d0d 100755
--- a/clang-tools-extra/clang-tidy/add_new_check.py
+++ b/clang-tools-extra/clang-tidy/add_new_check.py
@@ -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:
OpenPOWER on IntegriCloud