[PATCH] D67135: Support proto repeated field in performence-inefficient-vector-operation
Cong Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 3 16:42:00 PDT 2019
congliu created this revision.
congliu added a reviewer: gribozavr.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D67135
Files:
clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.h
clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-vector-operation.rst
clang-tools-extra/test/clang-tidy/performance-inefficient-vector-operation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67135.218565.patch
Type: text/x-patch
Size: 18804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190903/76371eea/attachment-0001.bin>
More information about the cfe-commits
mailing list