diff options
author | Haojian Wu <hokein@google.com> | 2019-09-16 08:54:10 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2019-09-16 08:54:10 +0000 |
commit | ad7a7cea89717daf6b56f35e4bc0b95afe0498a2 (patch) | |
tree | 0a1c2b56486350046143365ccb0f5672639793d7 /lldb/packages/Python/lldbsuite/test/python_api/interpreter | |
parent | b026b3e53d67c258f8b750e3fc44fa1609185dee (diff) | |
download | bcm5719-llvm-ad7a7cea89717daf6b56f35e4bc0b95afe0498a2.tar.gz bcm5719-llvm-ad7a7cea89717daf6b56f35e4bc0b95afe0498a2.zip |
[clang-tidy] performance-inefficient-vector-operation: Support proto repeated field
Summary:
Finds calls that add element to protobuf repeated field in a loop
without calling Reserve() before the loop. Calling Reserve() first can avoid
unnecessary memory reallocations.
A new option EnableProto is added to guard this feature.
Patch by Cong Liu!
Reviewers: gribozavr, alexfh, hokein, aaron.ballman
Reviewed By: hokein
Subscribers: lebedev.ri, xazax.hun, Eugene.Zelenko, cfe-commits
Tags: #clang, #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D67135
llvm-svn: 371963
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter')
0 files changed, 0 insertions, 0 deletions