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/CommentCommandTraits.h | |
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/CommentCommandTraits.h')
-rw-r--r-- | include/clang/AST/CommentCommandTraits.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/AST/CommentCommandTraits.h b/include/clang/AST/CommentCommandTraits.h index 1ec7929af5..8f9fca372b 100644 --- a/include/clang/AST/CommentCommandTraits.h +++ b/include/clang/AST/CommentCommandTraits.h @@ -109,6 +109,13 @@ struct CommandInfo { /// in comments. class CommandTraits { public: + enum KnownCommandIDs { +#define COMMENT_COMMAND(NAME) KCI_##NAME, +#include "clang/AST/CommentCommandList.inc" +#undef COMMENT_COMMAND + KCI_Last + }; + CommandTraits(llvm::BumpPtrAllocator &Allocator); /// \returns a CommandInfo object for a given command name or |