From 7711ccb0fa83fc370efbef6412869c15215b7b54 Mon Sep 17 00:00:00 2001 From: shining Date: Fri, 7 Feb 2020 12:55:06 +0800 Subject: [PATCH] Add clang-tidy config file The clang-tidy config file contains the naming rules for ArkCompilers. --- .clang-tidy | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000000..7efa92f6fe --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,22 @@ +Checks: '-*,readability-identifier-naming' +CheckOptions: + - key: readability-identifier-naming.ClassCase + value: CamelCase + - key: readability-identifier-naming.StructCase + value: CamelCase + - key: readability-identifier-naming.TypedefCase + value: CamelCase + - key: readability-identifier-naming.EnumCase + value: CamelCase + - key: readability-identifier-naming.EnumConstantCase + value: camelBack + - key: readability-identifier-naming.UnionCase + value: CamelCase + - key: readability-identifier-naming.NamespaceCase + value: lower_case + - key: readability-identifier-naming.FunctionCase + value: CamelCase + - key: readability-identifier-naming.VariableCase + value: camelBack + - key: readability-identifier-naming.ConstantCase + value: camelBack -- Gitee