[cfe-commits] r155274 - /cfe/trunk/lib/Sema/SemaExprMember.cpp
Matt Beaumont-Gay
matthewbg at google.com
Fri Apr 20 19:13:04 PDT 2012
Author: matthewbg
Date: Fri Apr 20 21:13:04 2012
New Revision: 155274
URL: http://llvm.org/viewvc/llvm-project?rev=155274&view=rev
Log:
Also highlight the member name.
Modified:
cfe/trunk/lib/Sema/SemaExprMember.cpp
Modified: cfe/trunk/lib/Sema/SemaExprMember.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprMember.cpp?rev=155274&r1=155273&r2=155274&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprMember.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprMember.cpp Fri Apr 20 21:13:04 2012
@@ -437,7 +437,7 @@
PT->getPointeeType()->isRecordType())) {
assert(BaseExpr && "cannot happen with implicit member accesses");
Diag(OpLoc, diag::err_typecheck_member_reference_struct_union)
- << BaseType << BaseExpr->getSourceRange();
+ << BaseType << BaseExpr->getSourceRange() << NameInfo.getSourceRange();
return ExprError();
}
}
@@ -1419,7 +1419,7 @@
}
Diag(OpLoc, diag::err_typecheck_member_reference_struct_union)
- << BaseType << BaseExpr.get()->getSourceRange();
+ << BaseType << BaseExpr.get()->getSourceRange() << MemberLoc;
return ExprError();
}
More information about the cfe-commits
mailing list