summaryrefslogtreecommitdiff
path: root/tests/headers/comment-indent.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/comment-indent.hpp')
-rw-r--r--tests/headers/comment-indent.hpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/headers/comment-indent.hpp b/tests/headers/comment-indent.hpp
new file mode 100644
index 00000000..96c13fcc
--- /dev/null
+++ b/tests/headers/comment-indent.hpp
@@ -0,0 +1,47 @@
+// bindgen-flags: --enable-cxx-namespaces
+
+/**
+ * This is a multi-line doc comment.
+ *
+ * This class is really really interesting, look!
+ */
+class Foo {
+ /**
+ * This nested class is also a multi-line doc comment.
+ *
+ * This class is not so interesting, but worth a bit of docs too!
+ */
+ class Bar { };
+};
+
+namespace test {
+ /**
+ * I'm in a namespace, and thus I may be on a rust module, most of the time.
+ * My documentation is pretty extensive, I guess.
+ */
+ class Baz {
+ /**
+ * This member is plain awesome, just amazing.
+ *
+ * It also has super-extensive docs, with even a nice ascii-art diagram.
+ *
+ * +------+ +-------+
+ * | foo | ----> | bar |
+ * +------+ +-------+
+ */
+ int member;
+ };
+
+ inline namespace foobiedoobie {
+ /**
+ * I'm in an inline namespace, and as such I shouldn't get generated inside
+ * a rust module, except when the relevant option is specified. Also, this
+ * comment shouldn't be misaligned.
+ */
+ class InInlineNS {
+ };
+ }
+
+ /**/
+ class Bazz {};
+}