[cfe-commits] [PATCH] remove unused STL header includes

Douglas Gregor dgregor at apple.com
Sat Apr 23 08:09:18 PDT 2011


On Apr 23, 2011, at 4:02 AM, Jay Foad wrote:

> These patches remove unnecessary #includes of STL header files. Found
> by grepping for e.g. "#include <vector>" in files that don't mention
> std::vector. (And no files should be using "using namespace std",
> according to the coding standards.)
> 
> Tested with "make all check-all", LLVM and Clang, on my Ubuntu system.
> I suppose there is a chance that the headers on my system are a bit
> more permissive than they need to be, and I've removed some #includes
> that are technically still required, but that seems fairly unlikely to
> me.
> 
> OK to commit?

Looks okay to me. We'll know pretty quickly if any extra headers were removed :)

	- Doug



More information about the cfe-commits mailing list