On 2013-05-08 12:32 PM, Chris Cleeland wrote:
I have a hankering to try to use dxr to evaluate a body of software for
things like:

1. unused #include (i.e., stuff from that #include isn't ever used in that
source file)

Does include what you use do what you want here?

2. unnecessary #include (i.e., types from the #include could be used with a
forward decl rather than full decl)

And here?

3. lazy #include (type used, but neither #include'd nor forward decl'd)

Obviously, doing this requires that include files be tracked.  Does dxr do
that?  If not, could it, i.e., does the plugin model for clang provide
hooks for capturing that information, or is that all done too far upstream?

I think IWYU is what you want!

Ehsan

_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to