[clang-tools-extra] r251355 - clang-tidy/add_new_check.py: Adapt to use %check_clang_tidy in tests

Matthias Gehre via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 26 14:48:08 PDT 2015


Author: mgehre
Date: Mon Oct 26 16:48:08 2015
New Revision: 251355

URL: http://llvm.org/viewvc/llvm-project?rev=251355&view=rev
Log:
clang-tidy/add_new_check.py: Adapt to use %check_clang_tidy in tests

Summary: Adapt clang-tidy/add_new_check.py according to commit r251010 "Add %check_clang_tidy and %clang_tidy_diff"

Reviewers: alexfh, sbenza, bkramer, aaron.ballman

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D14049

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=251355&r1=251354&r2=251355&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/add_new_check.py (original)
+++ clang-tools-extra/trunk/clang-tidy/add_new_check.py Mon Oct 26 16:48:08 2015
@@ -193,7 +193,7 @@ def write_test(module_path, module, chec
   print('Creating %s...' % filename)
   with open(filename, 'wb') as f:
     f.write(
-"""// RUN: %%python %%S/check_clang_tidy.py %%s %(check_name_dashes)s %%t
+"""// RUN: %%check_clang_tidy %%s %(check_name_dashes)s %%t
 
 // FIXME: Add something that triggers the check here.
 void f();




More information about the cfe-commits mailing list