[clang] clang-c/Index.h: Fix typoed comment (PR #144219)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 14 05:37:42 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: None (Alcaro)

<details>
<summary>Changes</summary>

NULL is not a representable value in type unsigned

---
Full diff: https://github.com/llvm/llvm-project/pull/144219.diff


1 Files Affected:

- (modified) clang/include/clang-c/Index.h (+1-1) 


``````````diff
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index e4cb4327fbaac..114c6cffe98e3 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -2390,7 +2390,7 @@ CINDEX_LINKAGE unsigned clang_isDeclaration(enum CXCursorKind);
  * A declaration is invalid if it could not be parsed successfully.
  *
  * \returns non-zero if the cursor represents a declaration and it is
- * invalid, otherwise NULL.
+ * invalid, otherwise zero.
  */
 CINDEX_LINKAGE unsigned clang_isInvalidDeclaration(CXCursor);
 

``````````

</details>


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


More information about the cfe-commits mailing list