]> granicus.if.org Git - clang/commit
Bound member function diagnostic - suggest no-args calls and note overload candidates
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 4 Jun 2013 00:28:46 +0000 (00:28 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 4 Jun 2013 00:28:46 +0000 (00:28 +0000)
commitc2fe81898b1b3b948791ca4ababd3d495601f22a
tree2c1587c3bfb294592f29faa760dcf11f9bfbbc61
parent221a8908e4521de533bace49566b5281df9b1924
Bound member function diagnostic - suggest no-args calls and note overload candidates

Still missing cases for templates, but this is a step in the right
direction. Also omits suggestions that would be ambiguous (eg: void
func(int = 0); + void func(float = 0); func;)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183173 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p6.cpp
test/CXX/over/over.over/p2-resolve-single-template-id.cpp
test/SemaCXX/addr-of-overloaded-function.cpp
test/SemaCXX/expression-traits.cpp
test/SemaCXX/overloaded-operator.cpp
test/SemaTemplate/resolve-single-template-id.cpp