[flang] Add clang-format files for FIR source (LLVM style)
authorJean Perier <jperier@nvidia.com>
Tue, 21 Jan 2020 15:41:52 +0000 (07:41 -0800)
committerJean Perier <jperier@nvidia.com>
Mon, 17 Feb 2020 10:37:49 +0000 (02:37 -0800)
Note:
This commit does not reflect an actual work log, it is a feature based split of the
changes done in the FIR experimental branch. The related work log can be found in the commits between:
https://github.com/schweitzpgi/f18/commit/8c320e3bf2c3e9cdac66c81db3bf4634bf972e1d
and:
https://github.com/schweitzpgi/f18/commit/9b9ea05f9a75608c7bb5372c56bf7b9363569a69

Original-commit: flang-compiler/f18@00d8d5121cdaed09e584a0aea7d59baf322bfaa3
Reviewed-on: https://github.com/flang-compiler/f18/pull/959
Tree-same-pre-rewrite: false

flang/include/fir/.clang-format [new file with mode: 0644]
flang/include/flang/lower/.clang-format [new file with mode: 0644]
flang/include/flang/optimizer/.clang-format [new file with mode: 0644]
flang/lib/fir/.clang-format [new file with mode: 0644]
flang/lib/lower/.clang-format [new file with mode: 0644]
flang/lib/optimizer/.clang-format [new file with mode: 0644]
flang/tools/bbc/.clang-format [new file with mode: 0644]
flang/tools/tco/.clang-format [new file with mode: 0644]

diff --git a/flang/include/fir/.clang-format b/flang/include/fir/.clang-format
new file mode 100644 (file)
index 0000000..a74fda4
--- /dev/null
@@ -0,0 +1,2 @@
+BasedOnStyle: LLVM
+AlwaysBreakTemplateDeclarations: Yes
diff --git a/flang/include/flang/lower/.clang-format b/flang/include/flang/lower/.clang-format
new file mode 100644 (file)
index 0000000..a74fda4
--- /dev/null
@@ -0,0 +1,2 @@
+BasedOnStyle: LLVM
+AlwaysBreakTemplateDeclarations: Yes
diff --git a/flang/include/flang/optimizer/.clang-format b/flang/include/flang/optimizer/.clang-format
new file mode 100644 (file)
index 0000000..a74fda4
--- /dev/null
@@ -0,0 +1,2 @@
+BasedOnStyle: LLVM
+AlwaysBreakTemplateDeclarations: Yes
diff --git a/flang/lib/fir/.clang-format b/flang/lib/fir/.clang-format
new file mode 100644 (file)
index 0000000..a74fda4
--- /dev/null
@@ -0,0 +1,2 @@
+BasedOnStyle: LLVM
+AlwaysBreakTemplateDeclarations: Yes
diff --git a/flang/lib/lower/.clang-format b/flang/lib/lower/.clang-format
new file mode 100644 (file)
index 0000000..a74fda4
--- /dev/null
@@ -0,0 +1,2 @@
+BasedOnStyle: LLVM
+AlwaysBreakTemplateDeclarations: Yes
diff --git a/flang/lib/optimizer/.clang-format b/flang/lib/optimizer/.clang-format
new file mode 100644 (file)
index 0000000..a74fda4
--- /dev/null
@@ -0,0 +1,2 @@
+BasedOnStyle: LLVM
+AlwaysBreakTemplateDeclarations: Yes
diff --git a/flang/tools/bbc/.clang-format b/flang/tools/bbc/.clang-format
new file mode 100644 (file)
index 0000000..a74fda4
--- /dev/null
@@ -0,0 +1,2 @@
+BasedOnStyle: LLVM
+AlwaysBreakTemplateDeclarations: Yes
diff --git a/flang/tools/tco/.clang-format b/flang/tools/tco/.clang-format
new file mode 100644 (file)
index 0000000..a74fda4
--- /dev/null
@@ -0,0 +1,2 @@
+BasedOnStyle: LLVM
+AlwaysBreakTemplateDeclarations: Yes