Add .clang-tidy and .clang-format files to the toplevel of the
authorJames Y Knight <jyknight@google.com>
Tue, 29 Jan 2019 16:43:16 +0000 (16:43 +0000)
committerJames Y Knight <jyknight@google.com>
Tue, 29 Jan 2019 16:43:16 +0000 (16:43 +0000)
repository (the same content as those in llvm/ and clang/).

llvm-svn: 352516

.clang-format [new file with mode: 0644]
.clang-tidy [new file with mode: 0644]

diff --git a/.clang-format b/.clang-format
new file mode 100644 (file)
index 0000000..9b3aa8b
--- /dev/null
@@ -0,0 +1 @@
+BasedOnStyle: LLVM
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644 (file)
index 0000000..2cfcc2a
--- /dev/null
@@ -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
+