]> granicus.if.org Git - clang/commit
Add an error message with fixit hint for changing '.' to '->'.
authorKaelyn Uhrain <rikka@google.com>
Wed, 25 Apr 2012 19:49:54 +0000 (19:49 +0000)
committerKaelyn Uhrain <rikka@google.com>
Wed, 25 Apr 2012 19:49:54 +0000 (19:49 +0000)
commit2b90f7637e846ea555dedac14e7f5065d85c5d3b
tree1b958a95d03853904729c05e6423027752e9488f
parentad579916bc402cf617793e94770bab78e9bdaec8
Add an error message with fixit hint for changing '.' to '->'.

This is mainly for attempting to recover in cases where a class provides
a custom operator-> and a '.' was accidentally used instead of '->' when
accessing a member of the object returned by the current object's
operator->.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155580 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaExprMember.cpp
test/FixIt/fixit.cpp
test/SemaCXX/arrow-operator.cpp