Skip to content

feat: cpp format, do not indent extern blocks - #16

Merged
emersonknapp merged 1 commit into
mainfrom
emerson/c-no-indent-extern
Aug 14, 2026
Merged

feat: cpp format, do not indent extern blocks#16
emersonknapp merged 1 commit into
mainfrom
emerson/c-no-indent-extern

Conversation

@emersonknapp

Copy link
Copy Markdown
Member

Oversight since we'd not been applying this to C files much, and our primary use for extern is

#ifdef _cplusplus
extern "C" {
#endif

Don't want the block inside that to be indented, it's really "top-level content", just with a special wrapper.

Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
@emersonknapp
emersonknapp merged commit c1d1c79 into main Aug 14, 2026
4 checks passed
@emersonknapp
emersonknapp deleted the emerson/c-no-indent-extern branch August 14, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant