[clang] [libclang] Add API to query more information about base classes. (PR #120300)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 13 05:28:13 PST 2025
================
@@ -3771,6 +3771,12 @@ CINDEX_LINKAGE enum CXRefQualifierKind clang_Type_getCXXRefQualifier(CXType T);
*/
CINDEX_LINKAGE unsigned clang_isVirtualBase(CXCursor);
+/**
+ * Returns the offset in bits of a CX_CXXBaseSpecifier relative to the parent
+ * class.
+ */
+CINDEX_LINKAGE long long clang_getOffsetOfBase(CXCursor Parent, CXCursor Base);
----------------
AaronBallman wrote:
Whoops, you're correct on both accounts! Sorry for missing that.
https://github.com/llvm/llvm-project/pull/120300
More information about the cfe-commits
mailing list