[PATCH] D140075: [libclang] Expose using shadow types and declarations in libclang.
serge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 28 22:33:27 PST 2023
serge-sans-paille added inline comments.
================
Comment at: clang/tools/libclang/CXCursor.cpp:1281
+ if (const UsingShadowDecl *Shadow = Using->getFoundDecl())
+ if (const auto *TD = dyn_cast_or_null<TypeDecl>(Shadow->getTargetDecl()))
+ return MakeCursorTypeRef(TD, Loc, TU);
----------------
In which case can this be null?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140075/new/
https://reviews.llvm.org/D140075
More information about the cfe-commits
mailing list