[PATCH] D48266: [Driver] Add -fno-digraphs

Jacob Bandes-Storch via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 19 00:42:37 PDT 2018


jtbandes updated this revision to Diff 151858.
jtbandes marked an inline comment as done.
jtbandes added a comment.

Added an error when language standard doesn't support digraphs.

Still keeping `-fdigraphs` as a cc1 option because then I can distinguish explicitly-enabled/disabled from the absence of a flag. I can also check whether digraphs are supported using the LangStandard/LangOpts in the CompilerInstance rather than hard-coding an incompatibility with -std=c89.


Repository:
  rC Clang

https://reviews.llvm.org/D48266

Files:
  include/clang/Driver/Options.td
  lib/Driver/ToolChains/Clang.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/Lexer/digraph.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48266.151858.patch
Type: text/x-patch
Size: 4940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180619/7e14408d/attachment.bin>


More information about the cfe-commits mailing list