This patch just executed clang-format on all source files of OpenMP,
excluding all test cases. Here is the Python script:
import glob import subprocess worklist = [] for f in glob.glob('llvm-project/openmp/**', recursive=True): if f.endswith('.h') or f.endswith('.hpp') or f.endswith('.c') or f.endswith('.cpp') or f.endswith('.cu') or f.endswith('.hip'): if '/tests/' in f or '/test/' in f: continue worklist.append(f) for f in worklist: subprocess.Popen(['clang-format', f, '-i'])
clang-tidy: error: 'common/debug.h' file not found [clang-diagnostic-error]
not useful