summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/style/sort_includes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/style/sort_includes.py b/util/style/sort_includes.py
index d1a25ee6b..cb88fec2d 100644
--- a/util/style/sort_includes.py
+++ b/util/style/sort_includes.py
@@ -158,6 +158,8 @@ class SortIncludes(object):
includes_re = (
('main', '""', _include_matcher_main()),
('python', '<>', _include_matcher_fname("^Python\.h$")),
+ ('pybind', '""', _include_matcher_fname("^pybind11/.*\.h$",
+ delim='""')),
('c', '<>', _include_matcher_fname("^.*\.h$")),
('stl', '<>', _include_matcher_fname("^\w+$")),
('cc', '<>', _include_matcher_fname("^.*\.(hh|hxx|hpp|H)$")),
@@ -170,6 +172,7 @@ class SortIncludes(object):
block_order = (
('python', ),
+ ('pybind', ),
('main', ),
('c', ),
('stl', ),