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

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 16 17:19:52 PDT 2018


rsmith accepted this revision.
rsmith added a comment.
This revision is now accepted and ready to land.

Looks good with one cleanup.



================
Comment at: lib/Frontend/CompilerInvocation.cpp:2177-2178
 
+  if (const Arg *A = Args.getLastArg(OPT_fdigraphs, OPT_fno_digraphs))
+    Opts.Digraphs = A->getOption().matches(OPT_fdigraphs) ? 1 : 0;
+
----------------
Simplify this to `Opts.Digraphs = Args.hasFlag(OPT_fdigraphs, OPT_fno_diagraphs, Opts.Digraphs);`


Repository:
  rC Clang

https://reviews.llvm.org/D48266





More information about the cfe-commits mailing list