[PATCH] D55662: [Sema] If CheckPlaceholderExpr rewrites a placeholder expression when the type of an auto variable is being deduced, use the rewritten expression when performing initialization of the variable.
    Akira Hatanaka via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Jan  9 21:15:04 PST 2019
    
    
  
ahatanak updated this revision to Diff 180993.
ahatanak retitled this revision from "[Sema][ObjC] Do not warn about repeated uses of weak variables when the variables are accessed in an unevaluated context." to "[Sema] If CheckPlaceholderExpr rewrites a placeholder expression when the type of an auto variable is being deduced, use the rewritten expression when performing initialization of the variable.".
ahatanak edited the summary of this revision.
ahatanak added a comment.
Pass `Init` by reference and use the rewritten expression returned in it to perform variable initialization. Add a test case that tests new expression with auto types.
Repository:
  rC Clang
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55662/new/
https://reviews.llvm.org/D55662
Files:
  include/clang/Sema/Sema.h
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaExpr.cpp
  lib/Sema/SemaExprCXX.cpp
  lib/Sema/SemaExprObjC.cpp
  lib/Sema/SemaLambda.cpp
  lib/Sema/SemaTemplateDeduction.cpp
  lib/Sema/SemaType.cpp
  test/SemaObjC/arc-repeated-weak.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55662.180993.patch
Type: text/x-patch
Size: 9755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190110/0f46e4ea/attachment-0001.bin>
    
    
More information about the cfe-commits
mailing list