clang-tools  16.0.0git
Functions | Variables
run-clang-tidy Namespace Reference

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)
 
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

 yaml = None
 

Function Documentation

◆ apply_fixes()

def run-clang-tidy.apply_fixes (   args,
  clang_apply_replacements_binary,
  tmpdir 
)
Calls clang-apply-fixes on a given directory.

Definition at line 180 of file run-clang-tidy.py.

Referenced by main().

◆ find_binary()

def run-clang-tidy.find_binary (   arg,
  name,
  build_path 
)
Get the path for a binary or exit

Definition at line 160 of file run-clang-tidy.py.

Referenced by main().

◆ find_compilation_database()

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().

◆ get_tidy_invocation()

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 
)
Gets a command line for clang-tidy.

Definition at line 92 of file run-clang-tidy.py.

Referenced by main(), and run_tidy().

◆ main()

def run-clang-tidy.main ( )

◆ make_absolute()

def run-clang-tidy.make_absolute (   f,
  directory 
)

Definition at line 86 of file run-clang-tidy.py.

Referenced by main().

◆ merge_replacement_files()

def run-clang-tidy.merge_replacement_files (   tmpdir,
  mergefile 
)
Merge all replacement files in a directory into a single file

Definition at line 135 of file run-clang-tidy.py.

Referenced by main().

◆ run_tidy()

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 192 of file run-clang-tidy.py.

References get_tidy_invocation(), and clang::tidy::cppcoreguidelines.join().

◆ strtobool()

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.

Variable Documentation

◆ yaml

run-clang-tidy.yaml = None

Definition at line 56 of file run-clang-tidy.py.