summaryrefslogtreecommitdiff
path: root/test/DocTest.thrift
diff options
context:
space:
mode:
authorDavid Reiss <dreiss@apache.org>2007-07-30 23:46:11 +0000
committerDavid Reiss <dreiss@apache.org>2007-07-30 23:46:11 +0000
commitc2532a9ac4168778c581cff235943eb270df6dbc (patch)
tree777a9eb163e7d4aca880a803e86a404ce995f55f /test/DocTest.thrift
parent1ac05803788fb15bcf16e48cdd53b550b3bc5515 (diff)
downloadthrift-c2532a9ac4168778c581cff235943eb270df6dbc.tar.gz
Thrift: Allow whole program doctext.
Summary: Allow docstrings at the top of the program. Blame Rev: 52687 Reviewed By: mcslee Test Plan: ../compiler/cpp/thrift -cpp DocTest.thrift (with dump_docs on) and looked at the output. Generated C++ is identical to installed thrift. Revert Plan: Do 52687 also. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665183 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/DocTest.thrift')
-rwxr-xr-xtest/DocTest.thrift18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/DocTest.thrift b/test/DocTest.thrift
index c06bd212b..361bdded6 100755
--- a/test/DocTest.thrift
+++ b/test/DocTest.thrift
@@ -1,3 +1,9 @@
+/**
+ * Program doctext.
+ *
+ * Seriously, this is the documentation for this whole program.
+ */
+
java_package thrift.test
cpp_namespace thrift.test
@@ -67,6 +73,10 @@ exception Xception2 {
2: Xtruct struct_thing
}
+/* C1 */
+/** Doc */
+/* C2 */
+/* C3 */
struct EmptyStruct {}
struct OneField {
@@ -211,3 +221,11 @@ typedef i32 TrailingWhitespace
* }
*/
typedef i32 BigDog
+
+/**
+*
+*
+*/
+typedef i32 TotallyDegenerate
+
+/* THE END */