diff options
Diffstat (limited to 'meson/test cases/unit/54 clang-format')
7 files changed, 49 insertions, 0 deletions
diff --git a/meson/test cases/unit/54 clang-format/.clang-format b/meson/test cases/unit/54 clang-format/.clang-format new file mode 100644 index 000000000..5c60ac9f3 --- /dev/null +++ b/meson/test cases/unit/54 clang-format/.clang-format @@ -0,0 +1,5 @@ +--- +BasedOnStyle: LLVM +IndentWidth: 4 +UseTab: Never +--- diff --git a/meson/test cases/unit/54 clang-format/dummydir.h/dummy.dat b/meson/test cases/unit/54 clang-format/dummydir.h/dummy.dat new file mode 100644 index 000000000..80c6165f3 --- /dev/null +++ b/meson/test cases/unit/54 clang-format/dummydir.h/dummy.dat @@ -0,0 +1 @@ +Placeholder to track enclosing directory in git. Not to be analyzed. diff --git a/meson/test cases/unit/54 clang-format/header_expected_h b/meson/test cases/unit/54 clang-format/header_expected_h new file mode 100644 index 000000000..430317604 --- /dev/null +++ b/meson/test cases/unit/54 clang-format/header_expected_h @@ -0,0 +1,3 @@ +#pragma once + +int fun(int argc); diff --git a/meson/test cases/unit/54 clang-format/header_orig_h b/meson/test cases/unit/54 clang-format/header_orig_h new file mode 100644 index 000000000..f2222f305 --- /dev/null +++ b/meson/test cases/unit/54 clang-format/header_orig_h @@ -0,0 +1,9 @@ +#pragma once + +int +fun +( +int +argc +) +; diff --git a/meson/test cases/unit/54 clang-format/meson.build b/meson/test cases/unit/54 clang-format/meson.build new file mode 100644 index 000000000..1b93cd54d --- /dev/null +++ b/meson/test cases/unit/54 clang-format/meson.build @@ -0,0 +1,4 @@ +project('clangformat', 'c') + +executable('prog', 'prog.c') + diff --git a/meson/test cases/unit/54 clang-format/prog_expected_c b/meson/test cases/unit/54 clang-format/prog_expected_c new file mode 100644 index 000000000..a045966a7 --- /dev/null +++ b/meson/test cases/unit/54 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/meson/test cases/unit/54 clang-format/prog_orig_c b/meson/test cases/unit/54 clang-format/prog_orig_c new file mode 100644 index 000000000..f098bbcce --- /dev/null +++ b/meson/test cases/unit/54 clang-format/prog_orig_c @@ -0,0 +1,21 @@ +#include <stdio.h> + + + + +int +main( +int +argc, +char** +argv) +{ +printf( +"Awful.\n" +) +; +return +0 +; +} + |