[lld] 2fed3ca - [lld] Add .clang-tidy to customize readability-identifier-naming.{Member,Parameter,Variable}Case => camelBack
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 08:27:37 PDT 2020
Author: Fangrui Song
Date: 2020-03-09T08:26:41-07:00
New Revision: 2fed3ca3b5c5e02b79811de2866a4f6cae443684
URL: https://github.com/llvm/llvm-project/commit/2fed3ca3b5c5e02b79811de2866a4f6cae443684
DIFF: https://github.com/llvm/llvm-project/commit/2fed3ca3b5c5e02b79811de2866a4f6cae443684.diff
LOG: [lld] Add .clang-tidy to customize readability-identifier-naming.{Member,Parameter,Variable}Case => camelBack
lld/.clang-tidy is almost identical to the top-level .clang-tidy, with the aforementioned customization.
Reviewed By: ruiu
Differential Revision: https://reviews.llvm.org/D75809
Added:
lld/.clang-tidy
Modified:
Removed:
################################################################################
diff --git a/lld/.clang-tidy b/lld/.clang-tidy
new file mode 100644
index 000000000000..87ec2ff53af6
--- /dev/null
+++ b/lld/.clang-tidy
@@ -0,0 +1,19 @@
+# Almost identical to the top-level .clang-tidy, except that {Member,Parameter,Variable}Case use camelBack.
+Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,readability-identifier-naming'
+CheckOptions:
+ - key: readability-identifier-naming.ClassCase
+ value: CamelCase
+ - key: readability-identifier-naming.EnumCase
+ value: CamelCase
+ - key: readability-identifier-naming.FunctionCase
+ value: camelBack
+ - key: readability-identifier-naming.MemberCase
+ value: camelBack
+ - key: readability-identifier-naming.ParameterCase
+ value: camelBack
+ - key: readability-identifier-naming.UnionCase
+ value: CamelCase
+ - key: readability-identifier-naming.VariableCase
+ value: camelBack
+ - key: readability-identifier-naming.IgnoreMainLikeFunctions
+ value: 1
More information about the llvm-commits
mailing list