[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
Wed Oct 12 15:53:56 PDT 2022


Izaron created this revision.
Izaron added reviewers: salman-javed-nz, aaron.ballman, bernhardmgruber, bkramer, kbobyrev.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a project: All.
Izaron requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

The check doesn't trigger for functions returning void. The new options
is added to allow to have a complete homogeneous code.

Fixes https://github.com/llvm/llvm-project/issues/54383


Repository:
  rG LLVM Github Monorepo

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.467286.patch
Type: text/x-patch
Size: 6562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221012/35c35416/attachment.bin>


More information about the cfe-commits mailing list