[clang] [clang-c] Don't deprecate CXRemapping as well as its users (PR #149975)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 22 01:48:43 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Simon Pilgrim (RKSimon)
<details>
<summary>Changes</summary>
#<!-- -->149079 deprecated CXRemapping and all its methods, however MSVC warns when a deprecated method is using a deprecated variable (and breaks our Werror builds) - best way to avoid this is to only deprecate the methods directly.
---
Full diff: https://github.com/llvm/llvm-project/pull/149975.diff
1 Files Affected:
- (modified) clang/include/clang-c/Index.h (-1)
``````````diff
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index b929585205aee..10b70b4f53eac 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -6953,7 +6953,6 @@ clang_getCursorUnaryOperatorKind(CXCursor cursor);
* @}
*/
-CINDEX_DEPRECATED
typedef void *CXRemapping;
CINDEX_DEPRECATED CINDEX_LINKAGE CXRemapping clang_getRemappings(const char *);
``````````
</details>
https://github.com/llvm/llvm-project/pull/149975
More information about the cfe-commits
mailing list