llvm-project/clang/test/Format/fail-on-incomplete.cpp
Roberto Bampi a29e9e32c5
[clang-format] Add --fail-on-incomplete-format. (#84346)
At the moment clang-format will return exit code 0 on incomplete
results. In scripts it would sometimes be useful if clang-format would
instead fail in those cases, signalling that there was something wrong
with the code being formatted.

---------

Co-authored-by: Björn Schäpers <github@hazardy.de>
Co-authored-by: Owen Pan <owenpiano@gmail.com>
2024-03-21 01:29:25 -07:00

5 lines
111 B
C++

// RUN: not clang-format -style=LLVM -fail-on-incomplete-format %s
// RUN: clang-format -style=LLVM %s
int a(