diff --git a/libc/src/.clang-tidy b/libc/src/.clang-tidy new file mode 100644 --- /dev/null +++ b/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' diff --git a/libc/src/math/round_redirector.cpp b/libc/src/math/round_redirector.cpp --- a/libc/src/math/round_redirector.cpp +++ b/libc/src/math/round_redirector.cpp @@ -6,6 +6,8 @@ // //===----------------------------------------------------------------------===// +// Include okay for this redirector. +// NOLINTNEXTLINE(llvmlibc-restrict-system-libc-headers) #include namespace __llvm_libc {