[PATCH] D81769: [clang-tidy] Repair various issues with modernize-avoid-bind

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 23 08:31:33 PDT 2020


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

Aside from a minor nit, this LGTM



================
Comment at: clang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp:414-415
+  for (const clang::Decl *D : RecordDecl->decls()) {
+    if (D->getKind() != Decl::Kind::FunctionTemplate)
+      continue;
+
----------------
You can drop this entirely -- the `dyn_cast<>` below does the work for you.


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

https://reviews.llvm.org/D81769





More information about the cfe-commits mailing list