[cfe-dev] [RFC] A proposal for #pragma optnone

Renato Golin renato.golin at linaro.org
Tue Apr 29 06:55:28 PDT 2014


On 29 April 2014 14:46, Hal Finkel <hfinkel at anl.gov> wrote:
> But why? I don't find this gcc comparison a compelling argument. It seems easier to support it, and more useful, than not supporting it. Adding a warning does not seem more difficult than adding the error. Regardless of what gcc does, Clang/LLVM must have a design process that keeps modern C++ in mind, and modern C++ includes lambda functions.

C++11 constructs should use annotations, not pragmas. We should only
implement legacy pragmas for legacy behaviour. Any new pragmas, or new
behaviour that we add on legacy pragmas will diverge from the original
intention and require ifdefs on user code.

cheers,
-renato




More information about the cfe-dev mailing list