[PATCH] D91149: [clang-tidy] Fix formatting of else after return check

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 10 04:28:14 PST 2020


njames93 created this revision.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.
njames93 requested review of this revision.

Simplifies the code in the fix-it generation.
Addresses https://bugs.llvm.org/show_bug.cgi?id=47809 (hopefully)
By not changing the whole else block it also means other checks with fix-its can be applied in the else block.

Depends on D91103 <https://reviews.llvm.org/D91103>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91149

Files:
  clang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
  clang-tools-extra/test/clang-tidy/checkers/readability-else-after-return.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91149.304134.patch
Type: text/x-patch
Size: 7293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201110/721ccaa3/attachment.bin>


More information about the cfe-commits mailing list