DaanDeMeyer wrote:

> unfortunately neither is used by include-cleaner. we only support mappings 
> for c++ STL, through 
> https://github.com/llvm/llvm-project/blob/main/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
>  and friends.
> 
> we didn't want to add any system specific libraries, especially based on file 
> path mappings, because some of these are platform-specific and dependent on 
> the version of the library. Hence we were worried about accuracy.
> 
> you can use `-ignore-headers` to prevent analysis for such headers (e.g. 
> `-ignore-headers=/usr/lib/.*`), or we might actually be more clever in 
> include-cleaner and try to disable these based on system-headerness of a 
> header, but that's also a losing battle since people can have various include 
> search paths in their command line.
> 
> (still happy to land this once you ack the message though, as it should be an 
> improvement for other tools)

Sure, makes sense to me, but yeah, this will still be useful for other tools, 
so feel free to land.

https://github.com/llvm/llvm-project/pull/140726
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to