summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-doc/test_cases
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/test/clang-doc/test_cases')
-rw-r--r--clang-tools-extra/test/clang-doc/test_cases/comment.cpp28
-rw-r--r--clang-tools-extra/test/clang-doc/test_cases/compile_flags.txt0
-rw-r--r--clang-tools-extra/test/clang-doc/test_cases/namespace.cpp26
-rw-r--r--clang-tools-extra/test/clang-doc/test_cases/record.cpp40
4 files changed, 94 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-doc/test_cases/comment.cpp b/clang-tools-extra/test/clang-doc/test_cases/comment.cpp
new file mode 100644
index 00000000000..9a4ae1b0314
--- /dev/null
+++ b/clang-tools-extra/test/clang-doc/test_cases/comment.cpp
@@ -0,0 +1,28 @@
+// THIS IS A GENERATED TEST. DO NOT EDIT.
+// To regenerate, see clang-doc/gen_test.py docstring.
+//
+// RUN: rm -rf %t
+// RUN: mkdir %t
+// RUN: echo "" > %t/compile_flags.txt
+// RUN: cp "%s" "%t/test.cpp"
+
+/// \brief Brief description.
+///
+/// Extended description that
+/// continues onto the next line.
+///
+/// <ul class="test">
+/// <li> Testing.
+/// </ul>
+///
+/// \verbatim
+/// The description continues.
+/// \endverbatim
+/// --
+/// \param [out] I is a parameter.
+/// \param J is a parameter.
+/// \return void
+void F(int I, int J);
+
+/// Bonus comment on definition
+void F(int I, int J) {}
diff --git a/clang-tools-extra/test/clang-doc/test_cases/compile_flags.txt b/clang-tools-extra/test/clang-doc/test_cases/compile_flags.txt
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/clang-tools-extra/test/clang-doc/test_cases/compile_flags.txt
diff --git a/clang-tools-extra/test/clang-doc/test_cases/namespace.cpp b/clang-tools-extra/test/clang-doc/test_cases/namespace.cpp
new file mode 100644
index 00000000000..7fa6f8f9c97
--- /dev/null
+++ b/clang-tools-extra/test/clang-doc/test_cases/namespace.cpp
@@ -0,0 +1,26 @@
+// THIS IS A GENERATED TEST. DO NOT EDIT.
+// To regenerate, see clang-doc/gen_test.py docstring.
+//
+// RUN: rm -rf %t
+// RUN: mkdir %t
+// RUN: echo "" > %t/compile_flags.txt
+// RUN: cp "%s" "%t/test.cpp"
+
+namespace A {
+
+void f();
+
+} // namespace A
+
+namespace A {
+
+void f(){};
+
+namespace B {
+
+enum E { X };
+
+E func(int i) { return X; }
+
+} // namespace B
+} // namespace A
diff --git a/clang-tools-extra/test/clang-doc/test_cases/record.cpp b/clang-tools-extra/test/clang-doc/test_cases/record.cpp
new file mode 100644
index 00000000000..03419a9e189
--- /dev/null
+++ b/clang-tools-extra/test/clang-doc/test_cases/record.cpp
@@ -0,0 +1,40 @@
+// THIS IS A GENERATED TEST. DO NOT EDIT.
+// To regenerate, see clang-doc/gen_test.py docstring.
+//
+// This test requires Linux due to system-dependent USR for the inner class.
+// REQUIRES: system-linux
+// RUN: rm -rf %t
+// RUN: mkdir %t
+// RUN: echo "" > %t/compile_flags.txt
+// RUN: cp "%s" "%t/test.cpp"
+
+void H() {
+ class I {};
+}
+
+union A { int X; int Y; };
+
+enum B { X, Y };
+
+enum class Bc { A, B };
+
+struct C { int i; };
+
+class D {};
+
+class E {
+public:
+ E() {}
+ ~E() {}
+
+protected:
+ void ProtectedMethod();
+};
+
+void E::ProtectedMethod() {}
+
+class F : virtual private D, public E {};
+
+class X {
+ class Y {};
+};
OpenPOWER on IntegriCloud