summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-08-07 18:59:04 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-08-07 18:59:04 +0000
commitcff339a60a571a606a7510548f661dc6a719368d (patch)
tree3abed613ae0b8025332a5c40918ebb696aa4695a /bindings
parentd43e114291eed272f8d7b735d3d1c4ca4cd04986 (diff)
Comment AST: DeclInfo: add a special kind for enums.
Comment XML: add a root node kind for enums. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/xml/comment-xml-schema.rng31
1 files changed, 31 insertions, 0 deletions
diff --git a/bindings/xml/comment-xml-schema.rng b/bindings/xml/comment-xml-schema.rng
index 8071b3a06c..69d8229d6b 100644
--- a/bindings/xml/comment-xml-schema.rng
+++ b/bindings/xml/comment-xml-schema.rng
@@ -13,6 +13,7 @@
<ref name="Variable" />
<ref name="Namespace" />
<ref name="Typedef" />
+ <ref name="Enum" />
</choice>
</start>
@@ -216,6 +217,36 @@
</element>
</define>
+ <define name="Enum">
+ <element name="Enum">
+ <ref name="attrSourceLocation" />
+ <ref name="Name" />
+ <optional>
+ <ref name="USR" />
+ </optional>
+ <optional>
+ <ref name="Abstract" />
+ </optional>
+
+ <!-- Template parameters, parameters and results don't make sense for
+ enums, but the user can specify \tparam \param or \returns in a
+ comment anyway. -->
+ <optional>
+ <ref name="TemplateParameters" />
+ </optional>
+ <optional>
+ <ref name="Parameters" />
+ </optional>
+ <optional>
+ <ref name="ResultDiscussion" />
+ </optional>
+
+ <optional>
+ <ref name="Discussion" />
+ </optional>
+ </element>
+ </define>
+
<define name="attrSourceLocation">
<optional>
<attribute name="file">