summaryrefslogtreecommitdiffstats
path: root/test cases/unit/53 clang-format
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/unit/53 clang-format')
-rw-r--r--test cases/unit/53 clang-format/.clang-format5
-rw-r--r--test cases/unit/53 clang-format/dummydir.h/dummy.dat1
-rw-r--r--test cases/unit/53 clang-format/header_expected_h3
-rw-r--r--test cases/unit/53 clang-format/header_orig_h9
-rw-r--r--test cases/unit/53 clang-format/meson.build3
-rw-r--r--test cases/unit/53 clang-format/prog_expected_c6
-rw-r--r--test cases/unit/53 clang-format/prog_orig_c20
7 files changed, 47 insertions, 0 deletions
diff --git a/test cases/unit/53 clang-format/.clang-format b/test cases/unit/53 clang-format/.clang-format
new file mode 100644
index 0000000..5c60ac9
--- /dev/null
+++ b/test cases/unit/53 clang-format/.clang-format
@@ -0,0 +1,5 @@
+---
+BasedOnStyle: LLVM
+IndentWidth: 4
+UseTab: Never
+---
diff --git a/test cases/unit/53 clang-format/dummydir.h/dummy.dat b/test cases/unit/53 clang-format/dummydir.h/dummy.dat
new file mode 100644
index 0000000..80c6165
--- /dev/null
+++ b/test cases/unit/53 clang-format/dummydir.h/dummy.dat
@@ -0,0 +1 @@
+Placeholder to track enclosing directory in git. Not to be analyzed.
diff --git a/test cases/unit/53 clang-format/header_expected_h b/test cases/unit/53 clang-format/header_expected_h
new file mode 100644
index 0000000..4303176
--- /dev/null
+++ b/test cases/unit/53 clang-format/header_expected_h
@@ -0,0 +1,3 @@
+#pragma once
+
+int fun(int argc);
diff --git a/test cases/unit/53 clang-format/header_orig_h b/test cases/unit/53 clang-format/header_orig_h
new file mode 100644
index 0000000..f2222f3
--- /dev/null
+++ b/test cases/unit/53 clang-format/header_orig_h
@@ -0,0 +1,9 @@
+#pragma once
+
+int
+fun
+(
+int
+argc
+)
+;
diff --git a/test cases/unit/53 clang-format/meson.build b/test cases/unit/53 clang-format/meson.build
new file mode 100644
index 0000000..09973db
--- /dev/null
+++ b/test cases/unit/53 clang-format/meson.build
@@ -0,0 +1,3 @@
+project('clangformat', 'c')
+
+executable('prog', 'prog.c')
diff --git a/test cases/unit/53 clang-format/prog_expected_c b/test cases/unit/53 clang-format/prog_expected_c
new file mode 100644
index 0000000..a045966
--- /dev/null
+++ b/test cases/unit/53 clang-format/prog_expected_c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main(int argc, char **argv) {
+ printf("Awful.\n");
+ return 0;
+}
diff --git a/test cases/unit/53 clang-format/prog_orig_c b/test cases/unit/53 clang-format/prog_orig_c
new file mode 100644
index 0000000..23a2b57
--- /dev/null
+++ b/test cases/unit/53 clang-format/prog_orig_c
@@ -0,0 +1,20 @@
+#include <stdio.h>
+
+
+
+
+int
+main(
+int
+argc,
+char**
+argv)
+{
+printf(
+"Awful.\n"
+)
+;
+return
+0
+;
+}