[libc-commits] [libc] [libc][clang-tidy] Add llvm-header-guard to get consistant naming and prevent file copy/paste issues. (PR #66477)

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Fri Sep 15 02:10:02 PDT 2023


https://github.com/gchatelet created https://github.com/llvm/llvm-project/pull/66477

None

>From cb0a4d9f4732ecc766a1c2c50f50a8d3393a8a48 Mon Sep 17 00:00:00 2001
From: Guillaume Chatelet <gchatelet at google.com>
Date: Fri, 15 Sep 2023 09:09:27 +0000
Subject: [PATCH] [libc][clang-tidy] Add llvm-header-guard to get consistant
 naming and prevent file copy/paste issues.

---
 libc/src/.clang-tidy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/src/.clang-tidy b/libc/src/.clang-tidy
index b21d4c3928c8f77..1c79b1cf6aae6f5 100644
--- a/libc/src/.clang-tidy
+++ b/libc/src/.clang-tidy
@@ -1,5 +1,5 @@
 InheritParentConfig: true
-Checks: '-*,llvmlibc-*,readability-identifier-naming'
+Checks: '-*,llvmlibc-*,readability-identifier-naming,llvm-header-guard'
 HeaderFilterRegex: '.*'
 WarningsAsErrors: 'llvmlibc-*'
 CheckOptions:



More information about the libc-commits mailing list