[all-commits] [llvm/llvm-project] 1682de: [libclang] Add API to query more information about...
Eli Friedman via All-commits
all-commits at lists.llvm.org
Tue Jan 14 13:58:06 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1682deed0fd02c6aca98154e8e9cf6c573ff6d45
https://github.com/llvm/llvm-project/commit/1682deed0fd02c6aca98154e8e9cf6c573ff6d45
Author: Eli Friedman <efriedma at quicinc.com>
Date: 2025-01-14 (Tue, 14 Jan 2025)
Changed paths:
M clang/bindings/python/clang/cindex.py
M clang/bindings/python/tests/cindex/test_type.py
M clang/docs/ReleaseNotes.rst
M clang/include/clang-c/Index.h
M clang/tools/libclang/CIndexCXX.cpp
M clang/tools/libclang/CXType.cpp
M clang/tools/libclang/libclang.map
Log Message:
-----------
[libclang] Add API to query more information about base classes. (#120300)
The first API is clang_visitCXXBaseClasses: this allows visiting the
base classes without going through the generic child visitor (which is
awkward, and doesn't work for template instantiations).
The second API is clang_getOffsetOfBase; this allows computing the
offset of a base in the class layout, the same way
clang_Cursor_getOffsetOfField computes the offset of a field.
Also, add a Python binding for the existing function
clang_isVirtualBase.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list