From 2911228ef43313edd08fd21dc63481a320e3bf06 Mon Sep 17 00:00:00 2001 From: Yifan Zhu Date: Wed, 21 Aug 2024 10:17:56 -0700 Subject: [PATCH] [misc] add clang-tidy --- .clang-tidy | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..6b0c6bf --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,24 @@ +Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,-misc-use-anonymous-namespace,readability-identifier-naming,-misc-include-cleaner' +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: camelBack +- key: readability-identifier-naming.VariableCase + value: camelBack +- key: readability-identifier-naming.ConstantCase + value: UPPER_CASE +- key: readability-identifier-naming.IgnoreMainLikeFunctions + value: 1 +- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors + value: 1 +- key: modernize-use-default-member-init.UseAssignment + value: 1