News for hackers. Stuff that matters.
Re:Include-what-you-use: Clang tool to analyze includes in C... by epistasis on Saturday January 23, 2016 @10:20AM (#10958612)
I don't think the program does that, if I understand your post. A more accurate name might b "exclude what you don't use." It doesn't add in chained includes, it just lets you know about superfluous includes.
Re:Include-what-you-use: Clang tool to analyze includes in C... by anarazel on Saturday January 23, 2016 @11:41AM (#10958897)
I was pretty sure it does that, since people in projects I work on use it. To make sure that I'm correct, I just ran it on some code I work on, and indeed, it wants to add (...c should add these lines ... ) implementation details to a lot of sourcefiles.
Re:Include-what-you-use: Clang tool to analyze includes in C... by throwawayaway on Saturday January 23, 2016 @12:03PM (#10958978)
I guess this can be a problem for cross platform code, yes?
Re:Include-what-you-use: Clang tool to analyze includes in C... by DrJokepu on Saturday January 23, 2016 @12:08PM (#10958994)
Or even compatability with different versions of the same compiler, runtime or libraries.