diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-23 16:19:45 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-30 00:50:00 +0200 |
| commit | 1fca654055d3502d2db9c5aad66a522beaa1df19 (patch) | |
| tree | baf97e14e15d57482ed73adba96ab98180ca13d6 /test cases | |
| parent | 3b495c397ec1baffe99d63031f2b03301b7f6ba5 (diff) | |
| download | meson-1fca654055d3502d2db9c5aad66a522beaa1df19.tar.gz | |
Add a clang-format target.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/unit/51 clang-format/.clang-format | 5 | ||||
| -rw-r--r-- | test cases/unit/51 clang-format/meson.build | 4 | ||||
| -rw-r--r-- | test cases/unit/51 clang-format/prog_expected_c | 6 | ||||
| -rw-r--r-- | test cases/unit/51 clang-format/prog_orig_c | 21 |
4 files changed, 36 insertions, 0 deletions
diff --git a/test cases/unit/51 clang-format/.clang-format b/test cases/unit/51 clang-format/.clang-format new file mode 100644 index 000000000..5c60ac9f3 --- /dev/null +++ b/test cases/unit/51 clang-format/.clang-format @@ -0,0 +1,5 @@ +--- +BasedOnStyle: LLVM +IndentWidth: 4 +UseTab: Never +--- diff --git a/test cases/unit/51 clang-format/meson.build b/test cases/unit/51 clang-format/meson.build new file mode 100644 index 000000000..1b93cd54d --- /dev/null +++ b/test cases/unit/51 clang-format/meson.build @@ -0,0 +1,4 @@ +project('clangformat', 'c') + +executable('prog', 'prog.c') + diff --git a/test cases/unit/51 clang-format/prog_expected_c b/test cases/unit/51 clang-format/prog_expected_c new file mode 100644 index 000000000..a045966a7 --- /dev/null +++ b/test cases/unit/51 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/51 clang-format/prog_orig_c b/test cases/unit/51 clang-format/prog_orig_c new file mode 100644 index 000000000..f098bbcce --- /dev/null +++ b/test cases/unit/51 clang-format/prog_orig_c @@ -0,0 +1,21 @@ +#include <stdio.h> + + + + +int +main( +int +argc, +char** +argv) +{ +printf( +"Awful.\n" +) +; +return +0 +; +} + |
