clang-format: Use IncludeBlocks::Regroup

This commit is contained in:
Gaël Bonithon
2024-05-28 18:56:08 +02:00
parent 104c52c6de
commit 293230ffa7
3 changed files with 17 additions and 0 deletions

View File

@@ -12,6 +12,21 @@ BreakBeforeBraces: Allman
ColumnLimit: 0
ContinuationIndentWidth: 2
Cpp11BracedListStyle: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '"config\.h"'
Priority: -1
CaseSensitive: true
- Regex: '"[^/]*"'
Priority: 0
SortPriority: 1
CaseSensitive: true
- Regex: '".*"'
Priority: 2
CaseSensitive: true
- Regex: '<.*>'
Priority: 3
CaseSensitive: true
IndentCaseLabels: true
InsertNewlineAtEOF: true
KeepEmptyLinesAtTheStartOfBlocks: false

View File

@@ -40,6 +40,7 @@
/* for struct vmtotal */
#include <sys/vmmeter.h>
/* errno */
#include <errno.h>
extern int errno;

View File

@@ -18,6 +18,7 @@
#ifdef HAVE_WNCK
#include "app-manager.h"
#include <gdk/gdkx.h>
#endif