[PATCH] D56160: [clang-tidy] modernize-use-trailing-return-type check
Bernhard Manfred Gruber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 18 18:59:11 PDT 2019
bernhardmgruber updated this revision to Diff 191233.
bernhardmgruber marked 7 inline comments as done and 2 inline comments as done.
bernhardmgruber added a comment.
- extracting specifiers from the return type if it consists of a multitoken built-in type, and preprending it to 'auto'.
- extended matcher to include `friend` declarations of functions
- added many tests for return types which contain specifiers
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56160/new/
https://reviews.llvm.org/D56160
Files:
clang-tidy/modernize/CMakeLists.txt
clang-tidy/modernize/ModernizeTidyModule.cpp
clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
clang-tidy/modernize/UseTrailingReturnTypeCheck.h
docs/ReleaseNotes.rst
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/modernize-use-trailing-return-type.rst
test/clang-tidy/modernize-use-trailing-return-type.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56160.191233.patch
Type: text/x-patch
Size: 51560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190319/6e0f7d1e/attachment-0001.bin>
More information about the cfe-commits
mailing list