diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-08-01 18:12:55 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-08-01 18:27:06 +0000 |
commit | 58ee80947790fc28d922898fa164bcb734adce1f (patch) | |
tree | 737a5f8dfb9045455abdb43f7e68b87f9ac4d08a | |
parent | c1dd17d33b0df54429e878ba8399cf5c51512f02 (diff) | |
download | gem5-58ee80947790fc28d922898fa164bcb734adce1f.tar.xz |
style: Add shared gem5 headers to the style checker
Teach the style checker about common headers living in gem5/. These
should be included after any global library headers (e.g., C headers
or STL headers), but before the normal gem5 headers.
Change-Id: I322f841420e361c16314be8fa4cbd1e86d2bfa9f
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/4300
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
-rw-r--r-- | util/style/sort_includes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/style/sort_includes.py b/util/style/sort_includes.py index cb88fec2d..39b3a13e0 100644 --- a/util/style/sort_includes.py +++ b/util/style/sort_includes.py @@ -160,6 +160,7 @@ class SortIncludes(object): ('python', '<>', _include_matcher_fname("^Python\.h$")), ('pybind', '""', _include_matcher_fname("^pybind11/.*\.h$", delim='""')), + ('m5shared', '<>', _include_matcher_fname("^gem5/")), ('c', '<>', _include_matcher_fname("^.*\.h$")), ('stl', '<>', _include_matcher_fname("^\w+$")), ('cc', '<>', _include_matcher_fname("^.*\.(hh|hxx|hpp|H)$")), @@ -177,6 +178,7 @@ class SortIncludes(object): ('c', ), ('stl', ), ('cc', ), + ('m5shared', ), ('m5header', ), ('swig0', 'swig1', 'swig2', 'swig3', ), ) |