kevgs added a comment. Sadly, I dont know such a tool. I was using a simple script to find unused headers ack --cpp -l 'SmallString\.h"' | xargs grep -L 'SmallString[ (<I]' | xargs grep -n --color=auto 'SmallString' http://reviews.llvm.org/D20100