aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInherit.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-16 00:38:09 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-16 00:38:09 +0000
commit4dc6b1c81c5efbaf68b868df10b18466b5e14b34 (patch)
tree6a74acffc68709b1fd677af1b7bc305d54e4ca55 /lib/Sema/SemaInherit.h
parent7e91627301b05cd8f2324795e19d87a62f444c31 (diff)
Improve diagnostics for ambiguous name lookup results
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInherit.h')
-rw-r--r--lib/Sema/SemaInherit.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Sema/SemaInherit.h b/lib/Sema/SemaInherit.h
index db7bfb8e65..87a4a663ae 100644
--- a/lib/Sema/SemaInherit.h
+++ b/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);