diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-01 20:23:57 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-01 20:23:57 +0000 |
commit | af01bed59b2fe18fa483f5dbb86584b31eda6f98 (patch) | |
tree | 207c2c05e7f8235bf541d37b2cb51010ec0bfc02 /include/clang/AST/CommentCommands.td | |
parent | 2821e180094459cbdef37e7d7c12bb406d5b82ba (diff) |
Comment parsing: improve the fidelity of XML output for many block commands
This change introduces a 'kind' attribute for the <Para> tag, that captures the
kind of the parent block command.
For example:
\todo Meow.
used to be just <Para>Meow.</Para>, but now it is
<Para kind="todo">Meow.</Para>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174216 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/CommentCommands.td')
-rw-r--r-- | include/clang/AST/CommentCommands.td | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/AST/CommentCommands.td b/include/clang/AST/CommentCommands.td index b5e1c292af..658f396abe 100644 --- a/include/clang/AST/CommentCommands.td +++ b/include/clang/AST/CommentCommands.td @@ -77,6 +77,9 @@ def Em : InlineCommand<"em">; def Brief : BlockCommand<"brief"> { let IsBriefCommand = 1; } def Short : BlockCommand<"short"> { let IsBriefCommand = 1; } +// Opposite of \brief, it is the default in our implementation. +def Details : BlockCommand<"details">; + def Returns : BlockCommand<"returns"> { let IsReturnsCommand = 1; } def Return : BlockCommand<"return"> { let IsReturnsCommand = 1; } def Result : BlockCommand<"result"> { let IsReturnsCommand = 1; } @@ -104,7 +107,6 @@ def Authors : BlockCommand<"authors">; def Bug : BlockCommand<"bug">; def Copyright : BlockCommand<"copyright">; def Date : BlockCommand<"date">; -def Details : BlockCommand<"details">; def Invariant : BlockCommand<"invariant">; def Note : BlockCommand<"note">; def Post : BlockCommand<"post">; |