[PATCH] D57380: [clang-tools-extra] add missing .clang-format and .clang-tidy for use with git monorepo

MyDeveloperDay via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 29 05:53:31 PST 2019


MyDeveloperDay created this revision.
MyDeveloperDay added reviewers: JonasToth, alexfh, hokein, aaron.ballman.
MyDeveloperDay added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

Before git monorepo, clang-tools-extra inherited its .clang-format and .clang-tidy files from llvm/tools/clang/.clang-format/tidy respectively

When using a git monorepo clang-tools-extra is at the topmost level and there is no parental .clang-format/tidy files to inherit (in llvm-project)

This revision simply copies the .clang-format/tidy files from the llvm/tools/clang up into llvm/tools/clang/tools/extra so that when its laid out as a monorepo, those files are present.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D57380

Files:
  .clang-format
  .clang-tidy


Index: .clang-tidy
===================================================================
--- /dev/null
+++ .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
+
Index: .clang-format
===================================================================
--- /dev/null
+++ .clang-format
@@ -0,0 +1 @@
+BasedOnStyle: LLVM


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57380.184070.patch
Type: text/x-patch
Size: 1075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190129/f3e1c761/attachment.bin>


More information about the llvm-commits mailing list