Commit Graph

3 Commits

Author SHA1 Message Date
Richard Smith 961ed8002b Do not warn about whitespace between ??/ trigraph and newline in line comments if trigraphs are disabled in the current language.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300609 91177308-0d34-0410-b5e6-96231b3b80d8
2017-04-18 21:45:04 +00:00
Nico Weber f370b84036 Add driver flags -ftrigraphs, -fno-trigraphs.
-trigraphs is now an alias for -ftrigraphs.  -fno-trigraphs makes it possible
to explicitly disable trigraphs, which couldn't be done before.

  clang -std=c++11 -fno-trigraphs

now builds without GNU extensions, but with trigraphs disabled.  Previously,
trigraphs were only disabled in GNU modes or with -std=c++1z.

Make the new -f flags the cc1 interface too.  This requires changing -trigraphs
to -ftrigraphs in a few cc1 tests.

Related to PR21974.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224790 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-23 22:32:37 +00:00
Richard Smith 0b795c57e5 [C++1z] Implement N3981: Disable trigraphs by default in C++1z mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211392 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-20 19:23:57 +00:00