clang-tools
9.0.0
|
Functions | |
def | find_compilation_database (path) |
def | make_absolute (f, directory) |
def | get_tidy_invocation (f, clang_tidy_binary, checks, tmpdir, build_path, header_filter, extra_arg, extra_arg_before, quiet, config) |
def | merge_replacement_files (tmpdir, mergefile) |
def | check_clang_apply_replacements_binary (args) |
def | apply_fixes (args, tmpdir) |
def | run_tidy (args, tmpdir, build_path, queue, lock, failed_files) |
def | main () |
Variables | |
yaml = None | |
string | is_py2 = '2' |
def run-clang-tidy.apply_fixes | ( | args, | |
tmpdir | |||
) |
Calls clang-apply-fixes on a given directory.
Definition at line 145 of file run-clang-tidy.py.
Referenced by main().
def run-clang-tidy.check_clang_apply_replacements_binary | ( | args | ) |
Checks if invoking supplied clang-apply-replacements binary works.
Definition at line 134 of file run-clang-tidy.py.
Referenced by main().
def run-clang-tidy.find_compilation_database | ( | path | ) |
Adjusts the directory until a compilation database is found.
Definition at line 63 of file run-clang-tidy.py.
Referenced by main().
def run-clang-tidy.get_tidy_invocation | ( | f, | |
clang_tidy_binary, | |||
checks, | |||
tmpdir, | |||
build_path, | |||
header_filter, | |||
extra_arg, | |||
extra_arg_before, | |||
quiet, | |||
config | |||
) |
Gets a command line for clang-tidy.
Definition at line 82 of file run-clang-tidy.py.
Referenced by make_absolute(), and run_tidy().
def run-clang-tidy.main | ( | ) |
Definition at line 177 of file run-clang-tidy.py.
References apply_fixes(), check_clang_apply_replacements_binary(), find_compilation_database(), clang::tidy::cppcoreguidelines.join(), make_absolute(), and merge_replacement_files().
def run-clang-tidy.make_absolute | ( | f, | |
directory | |||
) |
Definition at line 74 of file run-clang-tidy.py.
References get_tidy_invocation().
Referenced by main().
def run-clang-tidy.merge_replacement_files | ( | tmpdir, | |
mergefile | |||
) |
Merge all replacement files in a directory into a single file
Definition at line 109 of file run-clang-tidy.py.
Referenced by main().
def run-clang-tidy.run_tidy | ( | args, | |
tmpdir, | |||
build_path, | |||
queue, | |||
lock, | |||
failed_files | |||
) |
Takes filenames out of queue and runs clang-tidy on them.
Definition at line 156 of file run-clang-tidy.py.
References get_tidy_invocation(), and clang::tidy::cppcoreguidelines.join().
string run-clang-tidy.is_py2 = '2' |
Definition at line 56 of file run-clang-tidy.py.
run-clang-tidy.yaml = None |
Definition at line 54 of file run-clang-tidy.py.