[Openmp-commits] [PATCH] D95318: [OpenMP][NFC] Format all files in OpenMP

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun Jan 24 13:35:41 PST 2021


tianshilei1992 created this revision.
tianshilei1992 added reviewers: jdoerfert, JonChesterfield.
Herald added subscribers: s.egerton, jfb, guansong, simoncook, fedor.sergeev, krytarowski, yaxunl.
tianshilei1992 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95318

Files:
  openmp/libomptarget/deviceRTLs/common/omptarget.h
  openmp/libomptarget/deviceRTLs/common/omptargeti.h
  openmp/libomptarget/deviceRTLs/common/src/cancel.cu
  openmp/libomptarget/deviceRTLs/common/src/critical.cu
  openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu
  openmp/libomptarget/deviceRTLs/common/src/loop.cu
  openmp/libomptarget/deviceRTLs/common/src/omp_data.cu
  openmp/libomptarget/deviceRTLs/common/src/omptarget.cu
  openmp/libomptarget/deviceRTLs/common/src/parallel.cu
  openmp/libomptarget/deviceRTLs/common/src/reduction.cu
  openmp/libomptarget/deviceRTLs/common/src/support.cu
  openmp/libomptarget/deviceRTLs/common/src/task.cu
  openmp/libomptarget/deviceRTLs/common/state-queuei.h
  openmp/libomptarget/deviceRTLs/common/support.h
  openmp/libomptarget/deviceRTLs/interface.h
  openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.cu
  openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
  openmp/libomptarget/include/Debug.h
  openmp/libomptarget/include/omptarget.h
  openmp/libomptarget/plugins/generic-elf-64bit/src/rtl.cpp
  openmp/libomptarget/plugins/ve/src/rtl.cpp
  openmp/libomptarget/src/api.cpp
  openmp/libomptarget/src/device.cpp
  openmp/libomptarget/src/device.h
  openmp/libomptarget/src/interface.cpp
  openmp/libomptarget/src/omptarget.cpp
  openmp/libomptarget/src/rtl.cpp
  openmp/libomptarget/src/rtl.h
  openmp/runtime/doc/doxygen/libomp_interface.h
  openmp/runtime/src/kmp.h
  openmp/runtime/src/kmp_affinity.cpp
  openmp/runtime/src/kmp_affinity.h
  openmp/runtime/src/kmp_alloc.cpp
  openmp/runtime/src/kmp_atomic.cpp
  openmp/runtime/src/kmp_atomic.h
  openmp/runtime/src/kmp_barrier.cpp
  openmp/runtime/src/kmp_csupport.cpp
  openmp/runtime/src/kmp_dispatch.cpp
  openmp/runtime/src/kmp_environment.cpp
  openmp/runtime/src/kmp_error.cpp
  openmp/runtime/src/kmp_ftn_entry.h
  openmp/runtime/src/kmp_gsupport.cpp
  openmp/runtime/src/kmp_i18n.cpp
  openmp/runtime/src/kmp_io.cpp
  openmp/runtime/src/kmp_itt.cpp
  openmp/runtime/src/kmp_lock.cpp
  openmp/runtime/src/kmp_lock.h
  openmp/runtime/src/kmp_os.h
  openmp/runtime/src/kmp_platform.h
  openmp/runtime/src/kmp_runtime.cpp
  openmp/runtime/src/kmp_sched.cpp
  openmp/runtime/src/kmp_settings.cpp
  openmp/runtime/src/kmp_stats.cpp
  openmp/runtime/src/kmp_stats.h
  openmp/runtime/src/kmp_str.cpp
  openmp/runtime/src/kmp_taskdeps.cpp
  openmp/runtime/src/kmp_taskdeps.h
  openmp/runtime/src/kmp_tasking.cpp
  openmp/runtime/src/kmp_threadprivate.cpp
  openmp/runtime/src/kmp_utility.cpp
  openmp/runtime/src/kmp_version.cpp
  openmp/runtime/src/kmp_wait_release.h
  openmp/runtime/src/ompt-event-specific.h
  openmp/runtime/src/ompt-general.cpp
  openmp/runtime/src/ompt-specific.h
  openmp/runtime/src/test-touch.c
  openmp/runtime/src/thirdparty/ittnotify/disable_warnings.h
  openmp/runtime/src/thirdparty/ittnotify/ittnotify.h
  openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h
  openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp
  openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.h
  openmp/runtime/src/thirdparty/ittnotify/ittnotify_types.h
  openmp/runtime/src/thirdparty/ittnotify/legacy/ittnotify.h
  openmp/runtime/src/z_Linux_util.cpp
  openmp/runtime/src/z_Windows_NT_util.cpp
  openmp/tools/archer/ompt-tsan.cpp
  openmp/tools/multiplex/ompt-multiplex.h



More information about the Openmp-commits mailing list