[clang] add \param[out] annotations to clang_tokenize (PR #159822)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 19 12:37:12 PDT 2025
https://github.com/Rune-Magic updated https://github.com/llvm/llvm-project/pull/159822
>From 810b291b0cb0361658393521295b41ae64e22364 Mon Sep 17 00:00:00 2001
From: Rune <emilwolff2010 at gmail.com>
Date: Fri, 19 Sep 2025 19:35:21 +0200
Subject: [PATCH] add \param[out] annotations to clang_tokenize
---
clang/include/clang-c/Index.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index be038d9165fc6..a20cf56c1a294 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -5074,11 +5074,11 @@ CINDEX_LINKAGE CXSourceRange clang_getTokenExtent(CXTranslationUnit, CXToken);
* \param Range the source range in which text should be tokenized. All of the
* tokens produced by tokenization will fall within this source range,
*
- * \param Tokens this pointer will be set to point to the array of tokens
+ * \param[out] Tokens this pointer will be set to point to the array of tokens
* that occur within the given source range. The returned pointer must be
* freed with clang_disposeTokens() before the translation unit is destroyed.
*
- * \param NumTokens will be set to the number of tokens in the \c *Tokens
+ * \param[out] NumTokens will be set to the number of tokens in the \c *Tokens
* array.
*
*/
More information about the cfe-commits
mailing list