aboutsummaryrefslogtreecommitdiffstats
path: root/_clang-format
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2019-12-17 07:48:54 +0100
committerPaul Wicking <paul.wicking@qt.io>2019-12-18 09:55:55 +0100
commitbd0943bf5037fa59c76be581e2d98f05c72fd13e (patch)
treed0f6771d01dbd92911a95ec86b3e1dd19dc0841f /_clang-format
parent68c8693e5b451106478c0bc54aa5125f6cc2b02d (diff)
Update _clang-format definition
Add indentation for preprocessor directives if/ifdef/endif as this is commonly used across Qt. Change-Id: I0ce9851cc0861b8d18cb3717d695c871169db239 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to '_clang-format')
-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.