If the size of the type is above a certain bound, we'll take a const reference. This bound can be set as an option. For now, the default value is 16 bytes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D14176
Only copy small types in modernize-loop-convert. ClosedPublic Authored by angelgarcia on Oct 29 2015, 7:42 AM.
Details Summary If the size of the type is above a certain bound, we'll take a const reference. This bound can be set as an option. For now, the default value is 16 bytes.
Diff Detail
Event Timelineangelgarcia updated this object. This revision is now accepted and ready to land.Oct 29 2015, 4:57 PM Closed by commit rL251694: Only copy small types in modernize-loop-convert. (authored by angelgarcia). · Explain WhyOct 30 2015, 2:40 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 38789 clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertCheck.h
clang-tools-extra/trunk/clang-tidy/modernize/LoopConvertCheck.cpp
clang-tools-extra/trunk/clang-tidy/modernize/ModernizeTidyModule.cpp
clang-tools-extra/trunk/test/clang-tidy/Inputs/modernize-loop-convert/structures.h
clang-tools-extra/trunk/test/clang-tidy/modernize-loop-convert-basic.cpp
|