clang-tools 19.0.0git
|
Functions | |
def | strtobool (val) |
def | find_compilation_database (path) |
def | make_absolute (f, directory) |
def | get_tidy_invocation (f, clang_tidy_binary, checks, tmpdir, build_path, header_filter, allow_enabling_alpha_checkers, extra_arg, extra_arg_before, quiet, config_file_path, config, line_filter, use_color, plugins, warnings_as_errors) |
def | merge_replacement_files (tmpdir, mergefile) |
def | find_binary (arg, name, build_path) |
def | apply_fixes (args, clang_apply_replacements_binary, tmpdir) |
def | run_tidy (args, clang_tidy_binary, tmpdir, build_path, queue, lock, failed_files) |
def | main () |
Variables | |
try : | |
None | yaml = None |
def run-clang-tidy.apply_fixes | ( | args, | |
clang_apply_replacements_binary, | |||
tmpdir | |||
) |
Calls clang-apply-fixes on a given directory.
Definition at line 198 of file run-clang-tidy.py.
Referenced by main().
def run-clang-tidy.find_binary | ( | arg, | |
name, | |||
build_path | |||
) |
Get the path for a binary or exit
Definition at line 176 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 74 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, | |||
allow_enabling_alpha_checkers, | |||
extra_arg, | |||
extra_arg_before, | |||
quiet, | |||
config_file_path, | |||
config, | |||
line_filter, | |||
use_color, | |||
plugins, | |||
warnings_as_errors | |||
) |
Gets a command line for clang-tidy.
Definition at line 92 of file run-clang-tidy.py.
Referenced by main(), and run_tidy().
def run-clang-tidy.main | ( | ) |
Definition at line 250 of file run-clang-tidy.py.
References apply_fixes(), find_binary(), find_compilation_database(), get_tidy_invocation(), main(), make_absolute(), and merge_replacement_files().
Referenced by main().
def run-clang-tidy.make_absolute | ( | f, | |
directory | |||
) |
Definition at line 86 of file run-clang-tidy.py.
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 151 of file run-clang-tidy.py.
Referenced by main().
def run-clang-tidy.run_tidy | ( | args, | |
clang_tidy_binary, | |||
tmpdir, | |||
build_path, | |||
queue, | |||
lock, | |||
failed_files | |||
) |
Takes filenames out of queue and runs clang-tidy on them.
Definition at line 210 of file run-clang-tidy.py.
References get_tidy_invocation().
def run-clang-tidy.strtobool | ( | val | ) |
Convert a string representation of truth to a bool following LLVM's CLI argument parsing.
Definition at line 59 of file run-clang-tidy.py.
run-clang-tidy.try : |
Definition at line 53 of file run-clang-tidy.py.
None run-clang-tidy.yaml = None |
Definition at line 56 of file run-clang-tidy.py.