[clang-tools-extra] [clang-doc] add more test to clang-doc (PR #97518)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 2 22:13:38 PDT 2024


================
@@ -0,0 +1,31 @@
+#include "Array.h"
+
+// Implementation of Array<T, Size>
+
+/**
+* Initializes all elements of the array to their default value.
+*/
+template <typename T, int Size>
+Array<T, Size>::Array() {
+   // Implementation stub
+}
+
+/**
+* Array access operator for Array<T, Size>
+* Provides read and write access to elements in the array.
+* This implementation does not perform bounds checking
+*/
+template <typename T, int Size>
+T& Array<T, Size>::operator[](int index) {
+   // Implementation stub
+   static T dummy;
+   return dummy;
----------------
ilovepi wrote:

In some of these cases, it may be a useful test to include documentation strings on internal statement, to verify that we're not including them in the generated documentation, or if we're supporting those kinds of doc comments, that we're testing that they work correctly.

https://github.com/llvm/llvm-project/pull/97518


More information about the cfe-commits mailing list