[clang] a1702a2 - [clang][cli] Port Comment option flags to new parsing system

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 19 06:31:20 PST 2020


Author: Jan Svoboda
Date: 2020-11-19T15:27:13+01:00
New Revision: a1702a297b8bb1e4ed15673c6e122ac9dab4c802

URL: https://github.com/llvm/llvm-project/commit/a1702a297b8bb1e4ed15673c6e122ac9dab4c802
DIFF: https://github.com/llvm/llvm-project/commit/a1702a297b8bb1e4ed15673c6e122ac9dab4c802.diff

LOG: [clang][cli] Port Comment option flags to new parsing system

Depends on D83690

Reviewed By: dexonsmith

Original patch by Daniel Grumberg.

Differential Revision: https://reviews.llvm.org/D83691

Added: 
    

Modified: 
    clang/include/clang/Driver/Options.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 7a75eb683249..f72e9af40547 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -930,7 +930,8 @@ def fansi_escape_codes : Flag<["-"], "fansi-escape-codes">, Group<f_Group>,
 def fcomment_block_commands : CommaJoined<["-"], "fcomment-block-commands=">, Group<f_clang_Group>, Flags<[CC1Option]>,
   HelpText<"Treat each comma separated argument in <arg> as a documentation comment block command">,
   MetaVarName<"<arg>">;
-def fparse_all_comments : Flag<["-"], "fparse-all-comments">, Group<f_clang_Group>, Flags<[CC1Option]>;
+def fparse_all_comments : Flag<["-"], "fparse-all-comments">, Group<f_clang_Group>, Flags<[CC1Option]>,
+  MarshallingInfoFlag<"LangOpts->CommentOpts.ParseAllComments">;
 def frecord_command_line : Flag<["-"], "frecord-command-line">,
   Group<f_clang_Group>;
 def fno_record_command_line : Flag<["-"], "fno-record-command-line">,


        


More information about the cfe-commits mailing list