Bugzilla – Full Text Bug Listing |
Summary: | deheader for ns-3 | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
Component: | core | Assignee: | ns-bugs <ns-bugs> |
Status: | PATCH WANTED --- | ||
Severity: | enhancement | CC: | ns-bugs, tommaso.pecorella |
Priority: | P5 | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: |
deheader.py (modified for use with ns-3-dev)
deheader report (from bug 1237) |
Description
Tom Henderson
2014-01-12 17:58:00 EST
Created attachment 1757 [details]
deheader.py (modified for use with ns-3-dev)
Created attachment 1758 [details] deheader report (from bug 1237) Deheader seems to work only on cpp files. A similar tool 8requiring clang, tho) is here: http://include-what-you-use.org According to the docs, it's more aggressive (and optimizing) and it works also on header files. It's worth a check. About the patch, I think that if someone has enough time to setup a machine running IWYU, he/she can create the patches quite easily. A followup on this task. Tonight I (manually) substituting some headers with the respective forward declarations. C++ didn't complain at all, but PyBindGen did. Better: it didn't at the moment, but then it generated all sort of errors about wrong forward declarations in the various ns3module.cc. This happened with gcc 4.8.4, gccxml 0.9 and Python 2.7.6 |