From 1c846b0e861fc45c374391bc4ba43fabbaa331b4 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 16 Jan 2009 00:38:09 +0000 Subject: Improve diagnostics for ambiguous name lookup results llvm-svn: 62287 --- clang/lib/Sema/SemaInherit.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'clang/lib/Sema/SemaInherit.h') 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 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); -- cgit v1.2.3