Skip to content

Conversation

@RKSimon
Copy link
Collaborator

@RKSimon RKSimon commented Jul 22, 2025

#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.

llvm#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.
@RKSimon RKSimon requested review from AaronBallman and Sirraide July 22, 2025 08:48
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:as-a-library libclang and C++ API labels Jul 22, 2025
@llvmbot
Copy link
Member

llvmbot commented Jul 22, 2025

@llvm/pr-subscribers-clang

Author: Simon Pilgrim (RKSimon)

Changes

#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 --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 *);

Copy link
Collaborator

@AaronBallman AaronBallman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! One minor suggestion, but otherwise this LGTM

@github-actions
Copy link

github-actions bot commented Jul 22, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@RKSimon RKSimon merged commit 28ca5be into llvm:main Jul 22, 2025
7 of 9 checks passed
@RKSimon RKSimon deleted the clang-double-deprecate branch July 22, 2025 12:34
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
llvm#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.
@llvm llvm deleted a comment Aug 13, 2025
sivadeilra pushed a commit to sivadeilra/llvm-project that referenced this pull request Nov 13, 2025
llvm#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:as-a-library libclang and C++ API clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants