From bcda38c27282124f37c2d9356539886291801f6e Mon Sep 17 00:00:00 2001 From: John Ericson Date: Sat, 13 Apr 2024 10:17:58 -0400 Subject: [PATCH] Have `clang-format` indent conditional CPP This reflects the style I've been introducing in tandem with Windows support. See https://clang.llvm.org/docs/ClangFormatStyleOptions.html#indentppdirectives for this configuration option. --- .clang-format | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.clang-format b/.clang-format index 9c0c0946a..73eac7ef6 100644 --- a/.clang-format +++ b/.clang-format @@ -28,3 +28,5 @@ EmptyLineBeforeAccessModifier: Leave #PackConstructorInitializers: BinPack BreakBeforeBinaryOperators: NonAssignment AlwaysBreakBeforeMultilineStrings: true +IndentPPDirectives: AfterHash +PPIndentWidth: 2