r178903 - doce parsing: adding few more headerdoc tags.
Dmitri Gribenko
gribozavr at gmail.com
Fri Apr 5 15:13:53 PDT 2013
On Fri, Apr 5, 2013 at 10:40 PM, Fariborz Jahanian <fjahanian at apple.com> wrote:
> Author: fjahanian
> Date: Fri Apr 5 14:40:53 2013
> New Revision: 178903
>
> URL: http://llvm.org/viewvc/llvm-project?rev=178903&view=rev
> Log:
> doce parsing: adding few more headerdoc tags.
> // rdar://12379114
>
> Added:
> cfe/trunk/test/Index/comment-misc-tags.m
> Modified:
> cfe/trunk/include/clang/AST/CommentCommands.td
> cfe/trunk/utils/TableGen/ClangCommentCommandInfoEmitter.cpp
>
> Modified: cfe/trunk/include/clang/AST/CommentCommands.td
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/CommentCommands.td?rev=178903&r1=178902&r2=178903&view=diff
> ==============================================================================
> --- cfe/trunk/include/clang/AST/CommentCommands.td (original)
> +++ cfe/trunk/include/clang/AST/CommentCommands.td Fri Apr 5 14:40:53 2013
> @@ -140,9 +140,11 @@ def Todo : BlockCommand<"todo">;
> def Version : BlockCommand<"version">;
> def Warning : BlockCommand<"warning">;
> // HeaderDoc commands
> +def Abstract : BlockCommand<"abstract">;
> def ClassDesign : RecordLikeDetailCommand<"classdesign">;
> def CoClass : RecordLikeDetailCommand<"coclass">;
> def Dependency : RecordLikeDetailCommand<"dependency">;
> +def Discussion : BlockCommand<"discussion">;
> def Helper : RecordLikeDetailCommand<"helper">;
> def HelperClass : RecordLikeDetailCommand<"helperclass">;
> def Helps : RecordLikeDetailCommand<"helps">;
> @@ -173,6 +175,9 @@ def FDollar : VerbatimBlockCommand<"f$
> defm FBracket : VerbatimBlockCommand<"f[", "f]">; // Displayed LaTeX formula
> defm FBrace : VerbatimBlockCommand<"f{", "f}">; // LaTeX environment
>
> +// HeaderDoc commands
> +defm Textblock : VerbatimBlockCommand<"textblock", "/textblock">;
I'm a bit surprised (in a good sense) that the parser could handle
@/textblock command without any modifications.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-commits
mailing list