parameters: (build_folder, skip_output_filter, checks, auto_fix)
docstring: Run clang-tidy on the full codebase and print warnings.
docstring_summary: Run clang-tidy on the full codebase and print warnings.
docstring_tokens: Run clang - tidy on the full codebase and print warnings .
function: def ClangTidyRunFull(build_folder, skip_output_filter, checks, auto_fix):
    """
    Run clang-tidy on the full codebase and print warnings.
    """
    extra_args = []
    if auto_fix:
      extra_args.append('-fix')
  
    if checks is not None:
      extra_args.append('-checks')
      extra_args.append('-*, ' + checks)
  
    with open(os.devnull, 'w') as DEVNULL:
      ct_process = subprocess.Popen(
        ['run-clang-tidy', '-j' + str(THREADS), '-p', '.']
         + ['-header-filter'] + HEADER_REGEX + extra_args
         + FILE_REGEXS,
        cwd=build_folder,
        stdout=subprocess.PIPE,
        stderr=DEVNULL)
    removing_check_header = False
    empty_lines = 0
  
    while True:
      line = ct_process.stdout.readline()
      if line == '':
        break
  
      # Skip all lines after Enbale checks and before two newlines,
      # i.e., skip clang-tidy check list.
      if line.startswith('Enabled checks'):
        removing_check_header = True
      if removing_check_header and not skip_output_filter:
        if line == '\n':
          empty_lines += 1
        if empty_lines == 2:
          removing_check_header = False
        continue
  
      # Different lines get removed to ease output reading.
      if not skip_output_filter and skip_line(line):
        continue
  
      # Print line, because no filter was matched.
      if line != '\n':
          sys.stdout.write(line)
function_tokens: def ClangTidyRunFull ( build_folder , skip_output_filter , checks , auto_fix ) : extra_args = [ ] if auto_fix : extra_args . append ( '-fix' ) if checks is not None : extra_args . append ( '-checks' ) extra_args . append ( '-*, ' + checks ) with open ( os . devnull , 'w' ) as DEVNULL : ct_process = subprocess . Popen ( [ 'run-clang-tidy' , '-j' + str ( THREADS ) , '-p' , '.' ] + [ '-header-filter' ] + HEADER_REGEX + extra_args + FILE_REGEXS , cwd = build_folder , stdout = subprocess . PIPE , stderr = DEVNULL ) removing_check_header = False empty_lines = 0 while True : line = ct_process . stdout . readline ( ) if line == '' : break # Skip all lines after Enbale checks and before two newlines, # i.e., skip clang-tidy check list. if line . startswith ( 'Enabled checks' ) : removing_check_header = True if removing_check_header and not skip_output_filter : if line == '\n' : empty_lines += 1 if empty_lines == 2 : removing_check_header = False continue # Different lines get removed to ease output reading. if not skip_output_filter and skip_line ( line ) : continue # Print line, because no filter was matched. if line != '\n' : sys . stdout . write ( line )