Issue 52988
Summary IndentExternBlock: NoIndent is not working
Labels bug, clang-format
Assignees
Reporter carlosgalvezp
    I want to achieve the following result:

```
extern "C"
{
void foo();
}
```
For which I've set `IndentExternBlock: NoIndent`. However when running `clang-format` in the above code it will indent the function declaration, which I don't want.

I have also set `AfterExternBlock: true` in the `BraceWrapping` section.

I'm also having trouble to understand the very first option for `IndentExternBlock`:

> Backwards compatible with AfterExternBlock’s indenting.

Backwards compatible in what sense? What's the expected result if I use this option?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to