gem5/src
Andreas Sandberg 653b4657e6 style: Force Python.h to be included before main header
Python's header files set various compiler macros (e.g.,
_XOPEN_SOURCE) unconditionally. This triggers preprocessor warnings
that end up being treated as errors. The Python integration manual [1]
strongly recommends that Python.h is included before any system
header. The style guide used to mandate that Python.h is included
first in any file that needs it. This requirement was changed to
always include a source file's main header first, which ended up
triggering these errors.

This change updates the style checker to always include Python.h
before the main header file.

[1] https://docs.python.org/2/extending/extending.html

Change-Id: Id6a4f7fc64a336a8fd26691a0ca682abeb1d1579
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Pierre-Yves Péneau <pierre-yves.peneau@lirmm.fr>
2017-02-07 15:28:33 +00:00
..
arch riscv: Fix crash when syscall argument reg index is too high 2017-01-27 15:05:01 -06:00
base style: [patch 3/22] reduce include dependencies in some headers 2016-11-09 14:27:40 -06:00
cpu style: [patch 3/22] reduce include dependencies in some headers 2016-11-09 14:27:40 -06:00
dev style: [patch 3/22] reduce include dependencies in some headers 2016-11-09 14:27:40 -06:00
doc sim: Adding support for power models 2016-06-06 17:16:44 +01:00
doxygen MEM: Put memory system document into doxygen 2012-09-25 11:49:41 -05:00
gpu-compute style: [patch 3/22] reduce include dependencies in some headers 2016-11-09 14:27:40 -06:00
kern style: [patch 3/22] reduce include dependencies in some headers 2016-11-09 14:27:40 -06:00
mem mem: Refactor CommMonitor stats, add basic atomic mode stats 2017-01-27 14:58:16 -06:00
proto proto: Fix warnings for protoc v3 2017-01-27 15:07:20 -06:00
python style: Force Python.h to be included before main header 2017-02-07 15:28:33 +00:00
sim style: Force Python.h to be included before main header 2017-02-07 15:28:33 +00:00
unittest python: Move native wrappers to the _m5 namespace 2017-01-27 12:40:01 +00:00
Doxyfile Doxygen: Update the version of the Doxyfile 2012-10-11 06:38:42 -04:00
SConscript python: Move native wrappers to the _m5 namespace 2017-01-27 12:40:01 +00:00