Follow-up to D6217
authorAnton Korobeynikov <asl@math.spbu.ru>
Fri, 14 Nov 2014 21:41:07 +0000 (21:41 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Fri, 14 Nov 2014 21:41:07 +0000 (21:41 +0000)
commitdc12b367bc175ad5af56f4701a2ffb43a18db779
tree71225dcb531f8f5a7d96ffeef02f8ffd1ee6c9b7
parent71aa1a9355d80ac3c9579a1277f07fd7b2a609f2
Follow-up to D6217

Summary:
Ok, here is somewhat addition to D6217 aiming to preserve old darwin behavior wrt the typedefed types. The actual change to SemaChecking turned out to be pretty gross, in particular:
  1. We need to extract the typedef'ed type for proper diagnostics
  2. We need to walk over paren expressions as well

Reviewers: chandlerc, rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D6256

llvm-svn: 222044
clang/lib/Sema/SemaChecking.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/test/CodeGen/complex.c