[PATCH] D135822: [clang-tidy] Add option `IgnoreVoidReturnType` to `modernize-use-trailing-return-type`

Evgeny Shulgin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 13 13:42:18 PDT 2022


Izaron updated this revision to Diff 467590.
Izaron added a comment.

Change `IgnoreVoidReturnType` to `RewriteVoidReturn` type.
Check the cheaper condition first.

A big thank to @bernhardmgruber for nice comments!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135822

Files:
  clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.h
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/modernize/use-trailing-return-type.rst
  clang-tools-extra/test/clang-tidy/checkers/modernize/use-trailing-return-type-cxx20.cpp
  clang-tools-extra/test/clang-tidy/checkers/modernize/use-trailing-return-type-void.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135822.467590.patch
Type: text/x-patch
Size: 6569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221013/ea70f755/attachment.bin>


More information about the cfe-commits mailing list