[PATCH] D91895: [Clang] improve -Wimplicit-fallthrough GCC compat

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 23 17:09:23 PST 2020


nickdesaulniers added inline comments.


================
Comment at: clang/lib/Sema/AnalysisBasedWarnings.cpp:1102
+      return llvm::any_of(B->succs(),
+                          [this](const CFGBlock::AdjacentBlock &Succ) {
+                            if (const CFGBlock *S = Succ.getReachableBlock()) {
----------------
is there maybe a nicer way to do this using `std::bind` or `std::mem_fn`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91895



More information about the cfe-commits mailing list