aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-22 05:46:06 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-22 05:46:06 +0000
commit88a3514f36de96b19cdf50141c640df1a5f13f6c (patch)
treea15713eacba3dc51acc9af629d852ace77db9ea7 /include/clang/Basic
parentb595509bf5c07b65616d9c7ef26dca4858768ac7 (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 'include/clang/Basic')
-rw-r--r--include/clang/Basic/DiagnosticKinds.def7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticKinds.def b/include/clang/Basic/DiagnosticKinds.def
index 510f3ff916..bad9819ec8 100644
--- a/include/clang/Basic/DiagnosticKinds.def
+++ b/include/clang/Basic/DiagnosticKinds.def
@@ -937,8 +937,13 @@ DIAG(err_ovl_static_nonstatic_member, ERROR,
DIAG(err_ovl_no_viable_function_in_call, ERROR,
"no matching function for call to %0"
"%plural{0:|1:; candidate is|:; candidates are:}1")
+DIAG(err_ovl_no_viable_member_function_in_call, ERROR,
+ "no matching member function for call to %0"
+ "%plural{0:|1:; candidate is|:; candidates are:}1")
DIAG(err_ovl_ambiguous_call, ERROR,
"call to %0 is ambiguous; candidates are:")
+DIAG(err_ovl_ambiguous_member_call, ERROR,
+ "call to member function %0 is ambiguous; candidates are:")
DIAG(err_ovl_candidate, NOTE,
"candidate function")
DIAG(err_ovl_builtin_candidate, NOTE,
@@ -959,6 +964,8 @@ DIAG(err_ovl_ambiguous_object_call, ERROR,
"call to object of type %0 is ambiguous; candidates are:")
DIAG(err_ovl_surrogate_cand, NOTE,
"conversion candidate of type %0")
+DIAG(err_member_call_without_object, ERROR,
+ "call to non-static member function without an object argument")
/// C++ Templates Semantic Analysis
DIAG(err_template_param_shadow, ERROR,