]> granicus.if.org Git - clang/commit
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)
commit1651a71ff2b564407bf2a02819b5efcdf87382a3
tree1cc5b9673d8772513080319b1e5917d77e4b69b3
parentc5f0ed8753735bd2bd254724dea5b66a13a42f89
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222044 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
test/CodeGen/complex.c