[PATCH] clang-tidy: Add initial check for "Don't use else after return".

Daniel Jasper djasper at google.com
Mon Jan 12 09:01:39 PST 2015


Hi alexfh,

As per the LLVM coding standards:
http://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return

Initial version, probably still quite a bit to do until this is really useful.

http://reviews.llvm.org/D6927

Files:
  clang-tidy/misc/CMakeLists.txt
  clang-tidy/misc/ElseAfterReturnCheck.cpp
  clang-tidy/misc/ElseAfterReturnCheck.h
  clang-tidy/misc/MiscTidyModule.cpp
  test/clang-tidy/misc-else-after-return.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6927.18020.patch
Type: text/x-patch
Size: 5000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150112/e954dc9b/attachment.bin>


More information about the cfe-commits mailing list