[libc-commits] [PATCH] D76559: [libc] Enable llvmlibc clang-tidy checks
Paula Toth via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Mar 23 20:41:55 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGdab219eedd29: [libc] Enable llvmlibc clang-tidy checks (authored by PaulkaToast).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76559/new/
https://reviews.llvm.org/D76559
Files:
libc/src/.clang-tidy
libc/src/math/round_redirector.cpp
Index: libc/src/math/round_redirector.cpp
===================================================================
--- libc/src/math/round_redirector.cpp
+++ libc/src/math/round_redirector.cpp
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
+// Include okay for this redirector.
+// NOLINTNEXTLINE(llvmlibc-restrict-system-libc-headers)
#include <math.h>
namespace __llvm_libc {
Index: libc/src/.clang-tidy
===================================================================
--- /dev/null
+++ libc/src/.clang-tidy
@@ -0,0 +1,6 @@
+Checks: '-*,llvmlibc-*'
+HeaderFilterRegex: '.*'
+WarningsAsErrors: 'llvmlibc-*'
+CheckOptions:
+ - key: llvmlibc-restrict-system-libc-headers.Includes
+ value: '-*, linux/*, asm/unistd.h'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76559.252211.patch
Type: text/x-patch
Size: 801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200324/f9fa4187/attachment.bin>
More information about the libc-commits
mailing list