sort_includes.py (11828:36b064696175) | sort_includes.py (12009:3345827969f5) |
---|---|
1#!/usr/bin/env python2 2# 3# Copyright (c) 2014-2015 ARM Limited 4# All rights reserved 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 144 unchanged lines hidden (view full) --- 153 # <Python.h> - Python header needs to be first if it exists 154 # <*.h> - system headers (directories before files) 155 # <*> - STL headers 156 # <*.(hh|hxx|hpp|H)> - C++ Headers (directories before files) 157 # "*" - M5 headers (directories before files) 158 includes_re = ( 159 ('main', '""', _include_matcher_main()), 160 ('python', '<>', _include_matcher_fname("^Python\.h$")), | 1#!/usr/bin/env python2 2# 3# Copyright (c) 2014-2015 ARM Limited 4# All rights reserved 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 144 unchanged lines hidden (view full) --- 153 # <Python.h> - Python header needs to be first if it exists 154 # <*.h> - system headers (directories before files) 155 # <*> - STL headers 156 # <*.(hh|hxx|hpp|H)> - C++ Headers (directories before files) 157 # "*" - M5 headers (directories before files) 158 includes_re = ( 159 ('main', '""', _include_matcher_main()), 160 ('python', '<>', _include_matcher_fname("^Python\.h$")), |
161 ('pybind', '""', _include_matcher_fname("^pybind11/.*\.h$", 162 delim='""')), |
|
161 ('c', '<>', _include_matcher_fname("^.*\.h$")), 162 ('stl', '<>', _include_matcher_fname("^\w+$")), 163 ('cc', '<>', _include_matcher_fname("^.*\.(hh|hxx|hpp|H)$")), 164 ('m5header', '""', _include_matcher_fname("^.*\.h{1,2}$", delim='""')), 165 ('swig0', '<>', _include_matcher(keyword="%import")), 166 ('swig1', '<>', _include_matcher(keyword="%include")), 167 ('swig2', '""', _include_matcher(keyword="%import", delim='""')), 168 ('swig3', '""', _include_matcher(keyword="%include", delim='""')), 169 ) 170 171 block_order = ( 172 ('python', ), | 163 ('c', '<>', _include_matcher_fname("^.*\.h$")), 164 ('stl', '<>', _include_matcher_fname("^\w+$")), 165 ('cc', '<>', _include_matcher_fname("^.*\.(hh|hxx|hpp|H)$")), 166 ('m5header', '""', _include_matcher_fname("^.*\.h{1,2}$", delim='""')), 167 ('swig0', '<>', _include_matcher(keyword="%import")), 168 ('swig1', '<>', _include_matcher(keyword="%include")), 169 ('swig2', '""', _include_matcher(keyword="%import", delim='""')), 170 ('swig3', '""', _include_matcher(keyword="%include", delim='""')), 171 ) 172 173 block_order = ( 174 ('python', ), |
175 ('pybind', ), |
|
173 ('main', ), 174 ('c', ), 175 ('stl', ), 176 ('cc', ), 177 ('m5header', ), 178 ('swig0', 'swig1', 'swig2', 'swig3', ), 179 ) 180 --- 137 unchanged lines hidden --- | 176 ('main', ), 177 ('c', ), 178 ('stl', ), 179 ('cc', ), 180 ('m5header', ), 181 ('swig0', 'swig1', 'swig2', 'swig3', ), 182 ) 183 --- 137 unchanged lines hidden --- |