[PATCH] D18191: [clang-tidy] Add check for function parameters that are const& to builtin types
Steve Downey via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 15 09:53:19 PDT 2016
sdowney created this revision.
sdowney added a reviewer: alexfh.
sdowney added a subscriber: cfe-commits.
Add a check for const& to builtin types. Add FixIt replacing, for example, 'const& int i' with 'int i'.
http://reviews.llvm.org/D18191
Files:
clang-tidy/misc/CMakeLists.txt
clang-tidy/misc/ConstRefBuiltinCheck.cpp
clang-tidy/misc/ConstRefBuiltinCheck.h
clang-tidy/misc/MiscTidyModule.cpp
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/misc-const-ref-builtin.rst
test/clang-tidy/misc-const-ref-builtin.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18191.50749.patch
Type: text/x-patch
Size: 7912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160315/ce8d65d0/attachment-0001.bin>
More information about the cfe-commits
mailing list