diff --git a/.clang-format b/.clang-format index 26db4e14ad..d8c60a96eb 100644 --- a/.clang-format +++ b/.clang-format @@ -108,7 +108,7 @@ IndentCaseBlocks: false IndentCaseLabels: true IndentExternBlock: AfterExternBlock IndentGotoLabels: true -IndentPPDirectives: BeforeHash +IndentPPDirectives: None IndentRequiresClause: false IndentWidth: 4 IndentWrappedFunctionNames: true @@ -186,17 +186,17 @@ SpaceBeforeRangeBasedForLoopColon: true SpaceBeforeSquareBrackets: false SpaceInEmptyBlock: false SpacesBeforeTrailingComments: 1 -SpacesInAngles: Never +SpacesInAngles: Always SpacesInContainerLiterals: false SpacesInLineCommentPrefix: Minimum: 1 Maximum: -1 -SpacesInParens: Never +SpacesInParens: Custom SpacesInParensOptions: - InCStyleCasts: false - InConditionalStatements: false + InCStyleCasts: true + InConditionalStatements: true InEmptyParentheses: false - Other: false + Other: true SpacesInSquareBrackets: false Standard: Latest StatementAttributeLikeMacros: @@ -205,7 +205,7 @@ StatementMacros: - Q_UNUSED - QT_REQUIRE_VERSION TabWidth: 4 -UseTab: Never +UseTab: Always VerilogBreakBetweenInstancePorts: true WhitespaceSensitiveMacros: - STRINGIZE