]> granicus.if.org Git - clang/commit
UnresolvedMemberExpr should have an expr location of the member (not the base)
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 3 Jun 2013 19:46:44 +0000 (19:46 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 3 Jun 2013 19:46:44 +0000 (19:46 +0000)
commit16b0a310f5649d25849d84409841f401e7a9a0e5
treeb90a05c793bdbf612a96d15c67adcf18536f1e7c
parentc69e1733cdcf74cde52f596310dd8d07eb28e585
UnresolvedMemberExpr should have an expr location of the member (not the base)

This matches the behavior of MemberExpr and makes diagnostics such as
"reference to non-static member function must be called" more legible in
the case that the base & member are split over multiple lines (prior to
this change the diagnostic would point to the base, not the member -
making it very unclear in chained multi-line builder-style calls)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183149 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ExprCXX.h
test/SemaCXX/overloaded-operator.cpp