diff options
-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: |