clang-tools  7.0.0
Functions | Variables
gen_tests Namespace Reference

Functions

def clear_test_prefix_files (prefix, tests_path)
 
def copy_to_test_file (test_case_path, test_cases_path)
 
def run_clang_doc (args, out_dir, test_file)
 
def get_test_case_code (test_case_path, flags)
 
def get_output (root, out_file, case_out_path, flags, checkname, bcanalyzer)
 
def main ()
 

Variables

string RUN_CLANG_DOC
 
string RUN
 
string CHECK = '// CHECK-{0}: '
 
string CHECK_NEXT = '// CHECK-{0}-NEXT: '
 

Function Documentation

◆ clear_test_prefix_files()

def gen_tests.clear_test_prefix_files (   prefix,
  tests_path 
)

Definition at line 52 of file gen_tests.py.

Referenced by main().

◆ copy_to_test_file()

def gen_tests.copy_to_test_file (   test_case_path,
  test_cases_path 
)

Definition at line 60 of file gen_tests.py.

Referenced by main().

◆ get_output()

def gen_tests.get_output (   root,
  out_file,
  case_out_path,
  flags,
  checkname,
  bcanalyzer 
)

Definition at line 90 of file gen_tests.py.

Referenced by main().

◆ get_test_case_code()

def gen_tests.get_test_case_code (   test_case_path,
  flags 
)

Definition at line 80 of file gen_tests.py.

Referenced by main().

◆ main()

def gen_tests.main ( )

◆ run_clang_doc()

def gen_tests.run_clang_doc (   args,
  out_dir,
  test_file 
)

Definition at line 67 of file gen_tests.py.

References clang::tidy::cppcoreguidelines.join().

Referenced by main().

Variable Documentation

◆ CHECK

string gen_tests.CHECK = '// CHECK-{0}: '

Definition at line 47 of file gen_tests.py.

◆ CHECK_NEXT

string gen_tests.CHECK_NEXT = '// CHECK-{0}-NEXT: '

Definition at line 49 of file gen_tests.py.

◆ RUN

string gen_tests.RUN
Initial value:
1 = """
2 // RUN: {0} %t/{1} | FileCheck %s --check-prefix CHECK-{2}
3 """

Definition at line 43 of file gen_tests.py.

◆ RUN_CLANG_DOC

string gen_tests.RUN_CLANG_DOC
Initial value:
1 = """
2 // RUN: clang-doc {0} -p %t %t/test.cpp -output=%t/docs
3 """

Definition at line 40 of file gen_tests.py.