From 149be18dbc4d54328fe33b5ac21dcbbca2b07aa6 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Tue, 29 Jan 2019 16:43:16 +0000 Subject: [PATCH] Add .clang-tidy and .clang-format files to the toplevel of the repository (the same content as those in llvm/ and clang/). llvm-svn: 352516 --- .clang-format | 1 + .clang-tidy | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .clang-format create mode 100644 .clang-tidy diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000000..9b3aa8b7213 --- /dev/null +++ b/.clang-format @@ -0,0 +1 @@ +BasedOnStyle: LLVM diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000000..2cfcc2ac22b --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,17 @@ +Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,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: CamelCase + - key: readability-identifier-naming.ParameterCase + value: CamelCase + - key: readability-identifier-naming.UnionCase + value: CamelCase + - key: readability-identifier-naming.VariableCase + value: CamelCase +