[PATCH] D57106: [AST] Introduce GenericSelectionExpr::Association
    Bruno Ricci via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon Jan 28 05:32:48 PST 2019
    
    
  
riccibruno marked 3 inline comments as done.
riccibruno added inline comments.
================
Comment at: include/clang/AST/Expr.h:5122
+    AssociationIteratorTy() = default;
+    AssociationTy<Const> operator*() const {
+      return AssociationTy<Const>(cast<Expr>(*E), *TSI,
----------------
aaron.ballman wrote:
> Can this continue to return `reference` instead of the concrete type? (Same in the cast expression.)
Not literally `reference` since the base is dependent, but `typename BaseTy::reference` should work. Is that what you mean ?
================
Comment at: include/clang/AST/Expr.h:5254
+                            /*Offset=*/NumAssocs, ResultIndex);
+    return {Begin, End};
   }
----------------
aaron.ballman wrote:
> If you like being explicit, you could use `llvm::make_range()` here, but I don't insist. Same below.
I have no special preference on this, so `llvm::make_range()` it is.
Repository:
  rC Clang
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57106/new/
https://reviews.llvm.org/D57106
    
    
More information about the cfe-commits
mailing list