[PATCH] D57106: [AST] Introduce GenericSelectionExpr::Association

Bruno Ricci via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 23 10:04:04 PST 2019


riccibruno created this revision.
riccibruno added reviewers: aaron.ballman, steveire.
riccibruno added a project: clang.
Herald added a subscriber: cfe-commits.

Introduce a new class `GenericSelectionExpr::Association` which bundle together
an association expression and its `TypeSourceInfo`.

An iterator `GenericSelectionExpr::AssociationIterator` is additionally added to make
it possible to iterator over ranges of `Associations`. This iterator is a kind of proxy
iterator which abstract how exactly the expressions and the `TypeSourceInfo`s are stored.

Note: I have addressed all but 3 of the inline comments in D57098 <https://reviews.llvm.org/D57098>. The unaddressed comments
are still marked "not done" in D57098 <https://reviews.llvm.org/D57098>.


Repository:
  rC Clang

https://reviews.llvm.org/D57106

Files:
  include/clang/AST/Expr.h
  include/clang/AST/RecursiveASTVisitor.h
  include/clang/AST/StmtDataCollectors.td
  lib/AST/ASTDumper.cpp
  lib/AST/StmtPrinter.cpp
  lib/AST/StmtProfile.cpp
  lib/Sema/SemaExprObjC.cpp
  lib/Sema/SemaPseudoObject.cpp
  lib/Sema/TreeTransform.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57106.183122.patch
Type: text/x-patch
Size: 14346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190123/071093ec/attachment-0001.bin>


More information about the cfe-commits mailing list