diff options
| author | John McCall <rjmccall@apple.com> | 2010-02-08 23:07:23 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-02-08 23:07:23 +0000 |
| commit | bc077cf5897af9109ffc8fd778d2ee9d9759ef21 (patch) | |
| tree | 8fa374a294a0fe49bc86a2287e33f43db1de7b84 /clang/lib/Sema/SemaOverload.h | |
| parent | d9d7186dc0205a459a38bd24610305031376933e (diff) | |
| download | bcm5719-llvm-bc077cf5897af9109ffc8fd778d2ee9d9759ef21.tar.gz bcm5719-llvm-bc077cf5897af9109ffc8fd778d2ee9d9759ef21.zip | |
Thread a source location into the template-argument deduction routines. There
may be some other places that could take advantage of this new information,
but I haven't really looked yet.
llvm-svn: 95600
Diffstat (limited to 'clang/lib/Sema/SemaOverload.h')
| -rw-r--r-- | clang/lib/Sema/SemaOverload.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOverload.h b/clang/lib/Sema/SemaOverload.h index cc26277825f..e6dfa742355 100644 --- a/clang/lib/Sema/SemaOverload.h +++ b/clang/lib/Sema/SemaOverload.h @@ -501,8 +501,13 @@ namespace clang { class OverloadCandidateSet : public llvm::SmallVector<OverloadCandidate, 16> { typedef llvm::SmallVector<OverloadCandidate, 16> inherited; llvm::SmallPtrSet<Decl *, 16> Functions; - + + SourceLocation Loc; public: + OverloadCandidateSet(SourceLocation Loc) : Loc(Loc) {} + + SourceLocation getLocation() const { return Loc; } + /// \brief Determine when this overload candidate will be new to the /// overload set. bool isNewCandidate(Decl *F) { |

