================ @@ -0,0 +1,5 @@ +// RUN: cat %s | not clang-format --fail-on-incomplete-format | FileCheck %s +// RUN: cat %s | clang-format | FileCheck %s +int a([) {} + +// CHECK: int a([) {} ---------------- owenca wrote:
> Done. It took me quite a while but `-style=LLVM` is also required as the > .clang-format in the parent directory sets DisableFormat to true. Before I > didn't notice because the `cat %s | clang-format` was bypassing the lookup > for the config file. It seems that `-style=LLVM` is needed whether the input comes from the stdin or a file. https://github.com/llvm/llvm-project/pull/84346 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits