diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-12-22 05:46:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-12-22 05:46:06 +0000 |
commit | 88a3514f36de96b19cdf50141c640df1a5f13f6c (patch) | |
tree | a15713eacba3dc51acc9af629d852ace77db9ea7 /lib/Sema/SemaOverload.h | |
parent | b595509bf5c07b65616d9c7ef26dca4858768ac7 (diff) |
Add support for calls to overloaded member functions. Things to note:
- Overloading has to cope with having both static and non-static
member functions in the overload set.
- The call may or may not have an implicit object argument,
depending on the syntax (x.f() vs. f()) and the context (static
vs. non-static member function).
- We now generate MemberExprs for implicit member access expression.
- We now cope with mutable whenever we're building MemberExprs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.h')
-rw-r--r-- | lib/Sema/SemaOverload.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Sema/SemaOverload.h b/lib/Sema/SemaOverload.h index c7bf8b2d6d..096bbf56c9 100644 --- a/lib/Sema/SemaOverload.h +++ b/lib/Sema/SemaOverload.h @@ -231,6 +231,15 @@ namespace clang { /// (C++ [over.call.object]). bool IsSurrogate; + /// IgnoreObjectArgument - True to indicate that the first + /// argument's conversion, which for this function represents the + /// implicit object argument, should be ignored. This will be true + /// when the candidate is a static member function (where the + /// implicit object argument is just a placeholder) or a + /// non-static member function when the call doesn't have an + /// object argument. + bool IgnoreObjectArgument; + /// FinalConversion - For a conversion function (where Function is /// a CXXConversionDecl), the standard conversion that occurs /// after the call to the overload candidate to convert the result |