diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-02-26 22:12:16 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-02-26 22:12:16 +0000 |
commit | 9db0fe97f533513f88e7141f0b2a405ebe86fa67 (patch) | |
tree | 88f57dde310d041a937894df5bce7f0af9d9eccb | |
parent | 34b0adb52f1528fb03313bdd5fd73632c11fc678 (diff) |
doxygen command. Add 'attention' command to list of similar
doxygen commands. // rdar://12379053
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176127 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | bindings/xml/comment-xml-schema.rng | 1 | ||||
-rw-r--r-- | include/clang/AST/CommentCommands.td | 1 | ||||
-rw-r--r-- | test/Index/Inputs/CommentXML/valid-para-kind-01.xml | 1 | ||||
-rw-r--r-- | tools/libclang/CXComment.cpp | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/bindings/xml/comment-xml-schema.rng b/bindings/xml/comment-xml-schema.rng index 39ba07af5a..22371dfed1 100644 --- a/bindings/xml/comment-xml-schema.rng +++ b/bindings/xml/comment-xml-schema.rng @@ -502,6 +502,7 @@ <optional> <attribute name="kind"> <choice> + <value>attention</value> <value>author</value> <value>authors</value> <value>bug</value> diff --git a/include/clang/AST/CommentCommands.td b/include/clang/AST/CommentCommands.td index 658f396abe..f04509c5ca 100644 --- a/include/clang/AST/CommentCommands.td +++ b/include/clang/AST/CommentCommands.td @@ -102,6 +102,7 @@ def Headerfile : BlockCommand<"headerfile"> { let IsHeaderfileCommand = 1; } // We don't do any additional semantic analysis for the following // BlockCommands. It might be a good idea to do something extra for them, but // for now we model them as plain BlockCommands. +def Attention : BlockCommand<"attention">; def Author : BlockCommand<"author">; def Authors : BlockCommand<"authors">; def Bug : BlockCommand<"bug">; diff --git a/test/Index/Inputs/CommentXML/valid-para-kind-01.xml b/test/Index/Inputs/CommentXML/valid-para-kind-01.xml index f796dcfe2a..71fe277be4 100644 --- a/test/Index/Inputs/CommentXML/valid-para-kind-01.xml +++ b/test/Index/Inputs/CommentXML/valid-para-kind-01.xml @@ -4,6 +4,7 @@ <Abstract><Para>Aaa.</Para></Abstract> <Discussion> <Para>Bbb</Para> + <Para kind="attention">Bbb</Para> <Para kind="author">Bbb</Para> <Para kind="authors">Bbb</Para> <Para kind="bug">Bbb</Para> diff --git a/tools/libclang/CXComment.cpp b/tools/libclang/CXComment.cpp index 3fa7c4af0d..1c127e1589 100644 --- a/tools/libclang/CXComment.cpp +++ b/tools/libclang/CXComment.cpp @@ -1034,6 +1034,7 @@ void CommentASTToXMLConverter::visitBlockCommandComment(const BlockCommandCommen StringRef ParagraphKind; switch (C->getCommandID()) { + case CommandTraits::KCI_attention: case CommandTraits::KCI_author: case CommandTraits::KCI_authors: case CommandTraits::KCI_bug: |