[PATCH] D82898: [clang-tidy] Handled insertion only fixits when determining conflicts.

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 29 04:47:15 PDT 2020


aaron.ballman accepted this revision.
aaron.ballman added a comment.

LG!



================
Comment at: clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp:703
+          Apply[Event.ErrorId] = false;
+        continue;
+      case Event::ET_Insert:
----------------
njames93 wrote:
> aaron.ballman wrote:
> > Similar here with `continue` and the unreachable.
> As this is in a loop, I'm torn whether using `break` makes it less readable. WDYT?
I tend to prefer `break` to `continue` because it's terribly easy to miss the fact that the `switch` statement is continuing the loop should someone decide they want to stick some code below the `switch` but within the loop for some reason.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82898



More information about the cfe-commits mailing list