diff options
Diffstat (limited to 'clang/lib/Sema/SemaInherit.h')
-rw-r--r-- | clang/lib/Sema/SemaInherit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaInherit.h b/clang/lib/Sema/SemaInherit.h index db7bfb8e652..87a4a663aeb 100644 --- a/clang/lib/Sema/SemaInherit.h +++ b/clang/lib/Sema/SemaInherit.h @@ -92,6 +92,9 @@ namespace clang { /// refer to the same base class subobject of type A (the virtual /// one), there is no ambiguity. class BasePaths { + /// Origin - The type from which this search originated. + QualType Origin; + /// Paths - The actual set of paths that can be taken from the /// derived class to the same base class. std::list<BasePath> Paths; @@ -168,6 +171,11 @@ namespace clang { return DetectedVirtual; } + /// @brief Retrieve the type from which this base-paths search + /// began + QualType getOrigin() const { return Origin; } + void setOrigin(QualType Type) { Origin = Type; } + void clear(); void swap(BasePaths &Other); |