Index: clang/docs/ReleaseNotes.rst =================================================================== --- clang/docs/ReleaseNotes.rst +++ clang/docs/ReleaseNotes.rst @@ -200,6 +200,23 @@ ------------ +- Option ``IndentExternBlock`` has been added to optionally apply indenting inside extern "C" blocks. + + The ``BraceWrapping.AfterExternBlock`` option has been modified so it no longer indents when set to true, now it just wraps the braces around extern blocks. + + .. code-block:: c++ + + true: false: + #ifdef __cplusplus #ifdef __cplusplus + extern "C" { extern "C" { + #endif #endif + + void f(void); void f(void); + + #ifdef __cplusplus #ifdef __cplusplus + } } + #endif #endif + - Option ``IndentCaseBlocks`` has been added to support treating the block following a switch case label as a scope block which gets indented itself. It helps avoid having the closing bracket align with the switch statement's