Issue 75719
Summary clang-format: BreakBeforeBraces option affects IndentExternBlock option
Labels clang-format
Assignees
Reporter d06alexandrov
    It was already described in https://github.com/llvm/llvm-project/issues/36620

When you set BreakBeforeBraces to anything that differs from "Custom", it sets IndentExternBlock to "AfterExternBlock" even if you explicitly set IndentExternBlock to something else, e.g. "false".

This behavior is not mentioned in an official documentation (https://clang.llvm.org/docs/ClangFormatStyleOptions.html).
So I think it should be added to the documentation or fixed.

At least clang-format version 14.0.0 and 17.0.6 are affected.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to