[PATCH] D107900: Add a new clang-tidy check for trivially copyable types passed by const reference
Julien Marrec via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 11 09:36:43 PDT 2021
jmarrec updated this revision to Diff 365778.
jmarrec added a comment.
Added a MaxSize option. defaults to 16. Also skip templates. like in D107873 <https://reviews.llvm.org/D107873>
Dealt with the `f(int &i)` case instead of `f(int& i)`
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107900/new/
https://reviews.llvm.org/D107900
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
clang-tools-extra/clang-tidy/misc/PodConstRefToValueCheck.cpp
clang-tools-extra/clang-tidy/misc/PodConstRefToValueCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/misc-pod-const-ref-to-value.rst
clang-tools-extra/test/clang-tidy/checkers/misc-pod-const-ref-to-value.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107900.365778.patch
Type: text/x-patch
Size: 13267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210811/bca18f42/attachment-0001.bin>
More information about the cfe-commits
mailing list