diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-16 00:38:09 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-16 00:38:09 +0000 |
commit | 1c846b0e861fc45c374391bc4ba43fabbaa331b4 (patch) | |
tree | c1133c250d8932d7d4bd9c61468eeec33897c1a1 /clang/lib/Sema/SemaInherit.h | |
parent | 76d190cf4ad3a96b30466475490b76bca9c9e031 (diff) | |
download | bcm5719-llvm-1c846b0e861fc45c374391bc4ba43fabbaa331b4.tar.gz bcm5719-llvm-1c846b0e861fc45c374391bc4ba43fabbaa331b4.zip |
Improve diagnostics for ambiguous name lookup results
llvm-svn: 62287
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); |