aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_clang-format3
1 files changed, 3 insertions, 0 deletions
diff --git a/_clang-format b/_clang-format
index 589baff3..d4f5ffbf 100644
--- a/_clang-format
+++ b/_clang-format
@@ -59,6 +59,9 @@ ContinuationIndentWidth: 8
# No indentation for namespaces.
NamespaceIndentation: None
+# Allow indentation for preprocessing directives (if/ifdef/endif). https://reviews.llvm.org/rL312125
+IndentPPDirectives: AfterHash
+
# Horizontally align arguments after an open bracket.
# The coding style does not specify the following, but this is what gives
# results closest to the existing code.