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

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 17 23:22:53 PDT 2018


rsmith added inline comments.


================
Comment at: include/clang/Driver/Options.td:1337-1338
     Flags<[CC1Option]>, Group<f_Group>;
+def fno_digraphs : Flag<["-"], "fno-digraphs">, Group<f_Group>, Flags<[CC1Option]>,
+  HelpText<"Disallow alternative token representations '<:', ':>', '<%', '%>', '%:'">;
 def fno_declspec : Flag<["-"], "fno-declspec">, Group<f_clang_Group>,
----------------
In the driver, we generally want a `-ffoo` option matching `-fno-foo`. That is, the driver (but not `-cc1`) should support a matching `-fdigraphs` option to undo the effect of `-fno-digraphs`, unless there's a good reason not to do so.


Repository:
  rC Clang

https://reviews.llvm.org/D48266





More information about the cfe-commits mailing list