From bd0943bf5037fa59c76be581e2d98f05c72fd13e Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Tue, 17 Dec 2019 07:48:54 +0100 Subject: [PATCH] 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 --- _clang-format | 3 +++ 1 file changed, 3 insertions(+) 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.