diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-11-19 21:05:33 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-11-19 21:05:33 +0000 |
commit | 91cea0ad1e4cdec5886dfb3cf805bb116fc24e0a (patch) | |
tree | 1bc8d9d38565df505177df2e5bfb35f8137cc7b7 /clang/lib/Sema/Sema.h | |
parent | 4fb443f81b02ce067be24e7848b167a86ea234f2 (diff) | |
download | bcm5719-llvm-91cea0ad1e4cdec5886dfb3cf805bb116fc24e0a.tar.gz bcm5719-llvm-91cea0ad1e4cdec5886dfb3cf805bb116fc24e0a.zip |
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
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r-- | clang/lib/Sema/Sema.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |