ClangFormat: Correct order of includes

This commit is contained in:
Stefan Profanter 2019-03-15 11:30:27 +01:00
parent f8867620fe
commit 3a37fb29aa
No known key found for this signature in database
GPG Key ID: 52787A8E77301854

View File

@ -44,17 +44,21 @@ IncludeBlocks: Regroup
IncludeCategories: IncludeCategories:
# Public open62541 includes starting with <open62541/ # Public open62541 includes starting with <open62541/
- Regex: '^((<|")(open62541)\/)' - Regex: '^(<(open62541)\/)'
Priority: 3 Priority: 10
# Public open62541 includes starting with "open62541/
- Regex: '^("(open62541)\/)'
Priority: 20
# Internal open62541 includes starting with "ua_" or "open62541_" # Internal open62541 includes starting with "ua_" or "open62541_"
- Regex: '^((<|")(([[:alnum:]]+\/)?ua_|open62541_))' - Regex: '^((<|")(([[:alnum:]]+\/)?ua_|open62541_))'
Priority: 4 Priority: 30
# All other system header # All other system header
- Regex: '<[[:alnum:].]+>' - Regex: '<[[:alnum:].]+>'
Priority: 5 Priority: 40
# The rest # The rest
- Regex: '.*' - Regex: '.*'
Priority: 6 Priority: 50