mirror of
git://code.qt.io/qt/qt5.git
synced 2026-05-09 20:47:49 +08:00
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>
This commit is contained in:
@@ -59,6 +59,9 @@ ContinuationIndentWidth: 8
|
|||||||
# No indentation for namespaces.
|
# No indentation for namespaces.
|
||||||
NamespaceIndentation: None
|
NamespaceIndentation: None
|
||||||
|
|
||||||
|
# Allow indentation for preprocessing directives (if/ifdef/endif). https://reviews.llvm.org/rL312125
|
||||||
|
IndentPPDirectives: AfterHash
|
||||||
|
|
||||||
# Horizontally align arguments after an open bracket.
|
# Horizontally align arguments after an open bracket.
|
||||||
# The coding style does not specify the following, but this is what gives
|
# The coding style does not specify the following, but this is what gives
|
||||||
# results closest to the existing code.
|
# results closest to the existing code.
|
||||||
|
|||||||
Reference in New Issue
Block a user