From bc077cf5897af9109ffc8fd778d2ee9d9759ef21 Mon Sep 17 00:00:00 2001 From: John McCall Date: Mon, 8 Feb 2010 23:07:23 +0000 Subject: 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 --- clang/lib/Sema/SemaOverload.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'clang/lib/Sema/SemaOverload.h') 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 { typedef llvm::SmallVector inherited; llvm::SmallPtrSet 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) { -- cgit v1.2.3