aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2019-01-10 15:29:20 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-01-16 11:40:23 -0800
commite5c45e424bafcc28faa0d7ebcfcf3d8aee3d08a7 (patch)
tree9c2f40e908a20a8650497f4531266c79ff081ee2 /.clang-format
parentexamples: utils: skip formatting program options (diff)
downloaduhd-e5c45e424bafcc28faa0d7ebcfcf3d8aee3d08a7.tar.xz
uhd-e5c45e424bafcc28faa0d7ebcfcf3d8aee3d08a7.zip
clang-format: fixing include categories
Increasing priority of `#include "header.hpp"` statements.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format10
1 files changed, 6 insertions, 4 deletions
diff --git a/.clang-format b/.clang-format
index d41318ec7..6e9ab97ca 100644
--- a/.clang-format
+++ b/.clang-format
@@ -45,14 +45,16 @@ ForEachMacros:
- BOOST_FOREACH
IncludeBlocks: Merge
IncludeCategories:
- - Regex: '^"(uhd)/'
+ - Regex: '^"'
Priority: 1
- - Regex: '^"(uhdlib)/'
+ - Regex: '^"(uhd)/'
Priority: 2
- - Regex: '^<(uhd)/'
+ - Regex: '^"(uhdlib)/'
Priority: 3
- - Regex: '^<(uhdlib)/'
+ - Regex: '^<(uhd)/'
Priority: 4
+ - Regex: '^<(uhdlib)/'
+ Priority: 5
- Regex: '^<(boost)/'
Priority: 98
- Regex: '^<[a-z]*>$'