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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to