diff --git a/.clang-format b/.clang-format index 0aa74c9d..db8aa6c4 100644 --- a/.clang-format +++ b/.clang-format @@ -1,34 +1,39 @@ BasedOnStyle: WebKit Language: Cpp AlignAfterOpenBracket: true AlwaysBreakTemplateDeclarations: true AllowShortFunctionsOnASingleLine: Inline BreakBeforeBraces: Linux ColumnLimit: 0 CommentPragmas: '^ (FALLTHROUGH|krazy:) ' Standard: Cpp11 IndentWidth: 4 TabWidth: 4 UseTab: Never PointerAlignment: Right SpacesInParentheses: false SpacesInAngles: false SpacesInCStyleCastParentheses: false SpaceAfterControlStatementKeyword: true SpaceBeforeAssignmentOperators: true ContinuationIndentWidth: 4 -#IncludeBlocks: Regroup +SortIncludes: true + +# IncludeBlocks: +# I'd like to set this to "Regroup", but that leads some false-positives in the commit-hook. +# See: https://bugs.llvm.org/show_bug.cgi?id=39327 +IncludeBlocks: Preserve IncludeCategories: # include order: # 1. "config-kpa-xxx.h" # 2. "MAIN_HEADER.h" # 3. KPA-includes # 4. other includes - Regex: '^<(DB|Utilities|ThumbnailView|AnnotationDialog|BackgroundJobs|BackgroundTaskManager|Browser|CategoryListView|DateBar|Exif|HTMLGenerator|ImageManager|ImportExport|MainWindow|MainWindow/DuplicateMerger|Plugins|Settings|Viewer|XMLDB)/' Priority: 2 - Regex: '^(