From a5a79f69d6262e46f38126198be7f58932e11080 Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Wed, 8 Dec 2021 07:02:48 +0000 Subject: [libc] Add a .clang-tidy file for the toplevel libc directory. Generation of the .yaml has been removed to prevent lint from running with every ninja invocation. The new .clang-tidy file is copied to the libc build directory so that generated files also get checked. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D115405 --- libc/.clang-tidy | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libc/.clang-tidy (limited to 'libc/.clang-tidy') diff --git a/libc/.clang-tidy b/libc/.clang-tidy new file mode 100644 index 0000000..a1dba68 --- /dev/null +++ b/libc/.clang-tidy @@ -0,0 +1,24 @@ +InheritParentConfig: false +Checks: 'readability-identifier-naming' +HeaderFilterRegex: '.*' +CheckOptions: + - key: readability-identifier-naming.ClassCase + value: CamelCase + - key: readability-identifier-naming.StructCase + value: aNy_CasE + - key: readability-identifier-naming.MemberCase + value: lower_case + - key: readability-identifier-naming.MemberIgnoredRegexp + value: "^_[A-Za-z0-9_]+$" + - key: readability-identifier-naming.VariableCase + value: lower_case + - key: readability-identifier-naming.VariableIgnoredRegexp + value: "^_[A-Za-z0-9_]+$" + - key: readability-identifier-naming.FunctionCase + value: lower_case + - key: readability-identifier-naming.FunctionIgnoredRegexp + value: "^_[A-Za-z0-9_]+$" + - key: readability-identifier-naming.ConstexprVariableCase + value: UPPER_CASE + - key: readability-identifier-naming.GetConfigPerFile + value: true -- cgit v1.1