[clang] [clang][NFC] Add documentation for `CastExpr::path()`. (PR #85623)
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 18 13:14:12 PDT 2024
================
@@ -3552,6 +3552,15 @@ class CastExpr : public Expr {
/// function that it invokes.
NamedDecl *getConversionFunction() const;
+ /// Path through the class hierarchy taken by a `DerivedToBase` or
+ /// `UncheckedDerivedToBase` cast. For each derived-to-base edge in the path,
+ /// the path contains a `CXXBaseSpecifier` for the base class of that edge;
+ /// the entries are ordered from derived class to base class.
----------------
rjmccall wrote:
You can see in `CastConsistency` the set of cast kinds that require a base path; it's more than just these two.
https://github.com/llvm/llvm-project/pull/85623
More information about the cfe-commits
mailing list