[PATCH] D62645: [Sema] Resolve placeholder types before type deduction to silence spurious `-Warc-repeated-use-of-weak` warnings

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 28 19:36:12 PDT 2019


rjmccall added a comment.

Thanks, looks much better.



================
Comment at: include/clang/Sema/Sema.h:2066
   bool DeduceVariableDeclarationType(VarDecl *VDecl, bool DirectInit,
-                                     Expr *Init);
+                                     Expr *Init, bool DefaultedAnyToId);
   void CheckCompleteVariableDeclaration(VarDecl *VD);
----------------
A shame this needs to be propagated down like this.  Is there a reasonable way to just mark on the declaration that we defaulted the type, like an unparseable attribute?  This might be interesting to other clients ultimately.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62645/new/

https://reviews.llvm.org/D62645





More information about the cfe-commits mailing list