[cfe-commits] [PATCH] Add CommentOptions, allow specifying custom comment block commands

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 9 17:31:41 PST 2013



================
Comment at: include/clang/Driver/Options.td:329-331
@@ -328,2 +328,5 @@
   HelpText<"Use colors in diagnostics">;
+def fcomment_block_commands : CommaJoined<["-"], "fcomment-block-commands=">, Group<f_clang_Group>,
+  HelpText<"Treat each comma separated argument in <arg> as a documentation comment block command">,
+  MetaVarName<"<arg>">;
 def fcommon : Flag<["-"], "fcommon">, Group<f_Group>;
----------------
I'm not sure if we actually need this option.  (If you think that we do need it, we need logic in the driver -- lib/Driver/Tools.cpp -- to pass the option from the driver to -cc1)

If you needed this to test the AST construction for custom commands, then you don't need it -- you can just add a test to unittests/AST/CommentParser.cpp



http://llvm-reviews.chandlerc.com/D272



More information about the cfe-commits mailing list