From 98f619f5b1c39289211beb7e7c7dd322f3f3ef04 Mon Sep 17 00:00:00 2001 From: Michael Tautschnig Date: Sat, 30 Mar 2019 12:48:15 +0000 Subject: [PATCH] Make clang-format indent nested preprocessor directives Since clang-format 6 there is support to indent preprocessor directives, enabling formatting like ``` #if foo # define bar #endif ``` --- .clang-format | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-format b/.clang-format index 5457ba80565..126b58fb6f3 100644 --- a/.clang-format +++ b/.clang-format @@ -60,6 +60,7 @@ ForEachMacros: [ 'forall_subtypes', 'Forall_subtypes'] IndentCaseLabels: 'false' +IndentPPDirectives: AfterHash IndentWidth: '2' IndentWrappedFunctionNames: 'false' KeepEmptyLinesAtTheStartOfBlocks: 'false'