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

Nico Weber thakis at chromium.org
Fri Dec 19 18:07:35 PST 2014


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/b70cf097/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-cl-trigraphs.patch
Type: application/octet-stream
Size: 14418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141219/b70cf097/attachment.obj>


More information about the cfe-commits mailing list