I was not aware of IWYU, but I think you are correct that it's what I want, or at least close.
Hopefully it compiles against clang 3.2. Thanks! On Thu, May 9, 2013 at 5:32 PM, Ehsan Akhgari <[email protected]>wrote: > 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 > > -- Chris Cleeland _______________________________________________ dev-static-analysis mailing list [email protected] https://lists.mozilla.org/listinfo/dev-static-analysis
