diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:41:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:41:38 +0000 |
commit | 7b6e527f440cd7e6f8be2b07cee320ee6ca18786 (patch) | |
tree | 4a2738d69fa2814659fdadddf5826282e73d81f4 /test cases/unit/53 clang-format | |
parent | Initial commit. (diff) | |
download | meson-upstream/1.0.1.tar.xz meson-upstream/1.0.1.zip |
Adding upstream version 1.0.1.upstream/1.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test cases/unit/53 clang-format')
-rw-r--r-- | test cases/unit/53 clang-format/.clang-format | 5 | ||||
-rw-r--r-- | test cases/unit/53 clang-format/dummydir.h/dummy.dat | 1 | ||||
-rw-r--r-- | test cases/unit/53 clang-format/header_expected_h | 3 | ||||
-rw-r--r-- | test cases/unit/53 clang-format/header_orig_h | 9 | ||||
-rw-r--r-- | test cases/unit/53 clang-format/meson.build | 3 | ||||
-rw-r--r-- | test cases/unit/53 clang-format/prog_expected_c | 6 | ||||
-rw-r--r-- | test cases/unit/53 clang-format/prog_orig_c | 20 |
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 +; +} |