summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInherit.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Sema/SemaInherit.h')
-rw-r--r--clang/lib/Sema/SemaInherit.h8
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);
OpenPOWER on IntegriCloud