[cfe-dev] RFC: Clang driver redesign

Eric Christopher echristo at apple.com
Fri Nov 4 15:55:34 PDT 2011


> 
> > Then the port is broken. You shouldn't need a compiler option for this.
> 
> Agreed, but that doesn't take away there will always be wanted and controlled cases where these types of things are required. It would only limit Clang's power by removing that compiler option interface. And there will always be compiler bugs, that could be effectively worked around by using these kinds of options.
> 
Did you file a bug? Did you fix the bad behavior? Or did you just look for an undocumented option that would work around it and have left that in? Even if you did the right thing most users won't. Supporting and maintaining those sorts of behaviors with explicit command line options is exactly why those kinds of options shouldn't exist.

A generic interface for short term fixes (perhaps a reason for the plugins that James mentioned) might be OK, but the general driver should expose as little of the backend as possible.

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111104/49a42b8c/attachment.html>


More information about the cfe-dev mailing list