[patch, clang-cl] Implement /Zc:trigraphs support, disable trigraphs by default

Nico Weber thakis at chromium.org
Fri Dec 19 18:08:12 PST 2014


Forgot to say: Fixes PR21974.

On Fri, Dec 19, 2014 at 6:07 PM, Nico Weber <thakis at chromium.org> wrote:

> Hi,
>
> the attached patch disables trigraphs by default in clang-cl mode. To do
> so, I'm renaming the cc1 trigraph flag to -ftrigraphs, and I'm adding a
> -fno-trigraphs flag. (This requires updating a handful of cc1 tests, and
> translating -trigraphs to -ftrigraphs in the driver.)
>
> The driver grows parsing logic for /Zc:, everything other than trigraphs
> is ignored for now. (We probably want to implement at least /Zc:inline at
> some point, which is why I added parsing code for this instead of always
> sending -fno-trigraphs to cc1 in clang-cl mode.)
>
> Ok?
>
> Nico
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141219/5d3b3cd1/attachment.html>


More information about the cfe-commits mailing list