[PATCH] D31757: [clang-tidy] Add a clang-tidy check for possible inefficient vector operations
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 6 10:12:38 PDT 2017
Eugene.Zelenko added a comment.
Isn't such analysis is path-sensitive and should be implemented in Static Analyzer?
Please mention this check in docs/ReleaseNotes.rst (in alphabetical order).
================
Comment at: docs/clang-tidy/checks/performance-inefficient-vector-operation.rst:6
+
+Finds possible inefficient vector push_back operation that causes unnecessary
+memory reallocation.
----------------
I think will be good idea to use std::vector, and enclose it and push_back in ``.
https://reviews.llvm.org/D31757
More information about the cfe-commits
mailing list