1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 00:04:06 +00:00
transmission/gtk/.clang-format
Mike Gelfand 5fd0aff818
Automatically (re)order include directives (GTK client) (#4475)
* Automatically (re)order include directives (GTK client)

Include our headers first to ease IWYU enforcement.

* Fix includes missing from headers (GTK client)

* Fix build on Mac after includes reordering
2022-12-26 21:13:21 +00:00

28 lines
682 B
YAML

---
BasedOnStyle: InheritParentConfig
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<libtransmission/transmission.h>'
Priority: 3
SortPriority: 3
- Regex: '^<libtransmission/'
Priority: 3
SortPriority: 4
- Regex: '^<(cairo|gdk|gio|glib|gtk|pango)mm[-./]'
Priority: 5
- Regex: '^<(fmt)/'
Priority: 6
- Regex: '^<(cairo|gdk|gio|glib|gtk|pango)[-./]'
Priority: 8
- Regex: '^<(libappindicator|libayatana-appindicator)/'
Priority: 9
- Regex: '^<(winsock2|ws2tcpip)\.h>'
Priority: 10
- Regex: '^<(arpa|sys)/'
Priority: 11
- Regex: '^<[a-z_]+>'
Priority: 7
- Regex: '.*'
Priority: 2
SortIncludes: CaseInsensitive