Skip to content

Commit

Permalink
ClangFormat: Correct order of includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pro committed Mar 15, 2019
1 parent f886762 commit 3a37fb2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,21 @@ IncludeBlocks: Regroup

IncludeCategories:
# Public open62541 includes starting with <open62541/
- Regex: '^((<|")(open62541)\/)'
Priority: 3
- Regex: '^(<(open62541)\/)'
Priority: 10

# Public open62541 includes starting with "open62541/
- Regex: '^("(open62541)\/)'
Priority: 20

# Internal open62541 includes starting with "ua_" or "open62541_"
- Regex: '^((<|")(([[:alnum:]]+\/)?ua_|open62541_))'
Priority: 4
Priority: 30

# All other system header
- Regex: '<[[:alnum:].]+>'
Priority: 5
Priority: 40

# The rest
- Regex: '.*'
Priority: 6
Priority: 50

0 comments on commit 3a37fb2

Please sign in to comment.