[Openmp-commits] [PATCH] D103711: [OpenMP] [host runtime] add .clang-tidy file

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Jun 4 12:40:05 PDT 2021


jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, jdoerfert.
jlpeyton added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
jlpeyton requested review of this revision.
Herald added subscribers: sstefan1, aheejin.

Use same checks as compiler-rt which removes checks for readability-* and llvm-header-guard style. The host runtime code does not use the same style for variables/functions/etc. as LLVM nor apparently header guards. The style checks are removed similar to the compiler-rt project.

On some of the patches, the clang-tidy annotations are so verbose they become quite distracting. This should help silent many of the irrelevant ones.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103711

Files:
  openmp/runtime/.clang-tidy


Index: openmp/runtime/.clang-tidy
===================================================================
--- /dev/null
+++ openmp/runtime/.clang-tidy
@@ -0,0 +1,2 @@
+# Checks enabled in the top-level .clang-tidy minus readability-identifier-naming and llvm-header-guard.
+Checks: '-*,clang-diagnostic-*,llvm-*,-llvm-header-guard,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes'


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103711.349940.patch
Type: text/x-patch
Size: 405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210604/3ca7a8c6/attachment.bin>


More information about the Openmp-commits mailing list