From 91cea0ad1e4cdec5886dfb3cf805bb116fc24e0a Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 19 Nov 2008 21:05:33 +0000 Subject: Support for calling overloaded function call operators (operator()) with function call syntax, e.g., Functor f; f(x, y); This is the easy part of handling calls to objects of class type (C++ [over.call.object]). The hard part (coping with conversions from f to function pointer or reference types) will come later. Nobody uses that stuff anyway, right? :) llvm-svn: 59663 --- clang/lib/Sema/Sema.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/Sema/Sema.h') diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 85acc3eb8f9..805fa118ee6 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -453,6 +453,11 @@ public: bool Complain); void FixOverloadedFunctionReference(Expr *E, FunctionDecl *Fn); + ExprResult + BuildCallToObjectOfClassType(Expr *Object, SourceLocation LParenLoc, + Expr **Args, unsigned NumArgs, + SourceLocation *CommaLocs, + SourceLocation RParenLoc); /// Helpers for dealing with function parameters bool CheckParmsForFunctionDef(FunctionDecl *FD); -- cgit v1.2.3