================
@@ -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:

Naively, I would have expected this to return a `size_t`. But I see you return 
`-1` to mean there's an error; you should document that. But should we return a 
`size_t` regardless and say that `~0U` is returned on error?

https://github.com/llvm/llvm-project/pull/120300
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to