[PATCH] D110586: Update `DynTypedNode` to support the conversion of `TypeLoc`s.
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 1 11:05:08 PDT 2021
ymandel accepted this revision.
ymandel added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/unittests/AST/ASTTypeTraitsTest.cpp:207
+ auto matches = match(traverse(TK_AsIs, typeLoc().bind("tl")), context);
+ for (auto &nodes : matches) {
+ const auto &tl = *nodes.getNodeAs<TypeLoc>("tl");
----------------
let's assert that `matches.size() == 1` and then just use `nodes[0]`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110586/new/
https://reviews.llvm.org/D110586
More information about the cfe-commits
mailing list