[cfe-dev] RFC: Clang driver redesign

David Chisnall csdavec at swan.ac.uk
Wed Nov 9 07:00:58 PST 2011


On 9 Nov 2011, at 14:50, Christopher Jefferson wrote:

> True. I'm not sure of the best way of handling this.
> 
> To be honest, I would just prefer a nicer error / warning message. Making some attempt to inform the user of their (extremely common) mistake, and how they could go about fixing it, would make life much better for users. I'm not sure of the best place for this to live (clang? linker?) Of course it also isn't necessary to catch all cases, just some basic guidance.

Having the driver look for std:: (or the mangling of std::) in linker strings and print a fixit saying that you should link to a C++ standard library would be a nice addition.

David



More information about the cfe-dev mailing list