aboutsummaryrefslogtreecommitdiff
path: root/libc/.clang-tidy
diff options
context:
space:
mode:
Diffstat (limited to 'libc/.clang-tidy')
-rw-r--r--libc/.clang-tidy24
1 files changed, 24 insertions, 0 deletions
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