hanchenye-llvm-project/clang-tools-extra/test
Alexander Kornienko e94b7c24c8 [clang-tidy] Use shrink_to_fit instead of copy and swap trick
The shrink_to_fit() method is more readable and more effective than
the copy and swap trick to reduce the capacity of a shrinkable container.
Note that, the shrink_to_fit() method is only available in C++11 and up.

Example:

std::vector<int>(v).swap(v); will be replaced with v.shrink_to_fit();

http://reviews.llvm.org/D7087

Patch by Gábor Horváth!

llvm-svn: 226912
2015-01-23 15:10:37 +00:00
..
Unit Also run extra tools unit tests in shared library builds. 2014-08-13 12:54:50 +00:00
clang-apply-replacements Handle newlines on Windows correctly. 2014-12-09 02:57:56 +00:00
clang-modernize Make LoopConvert work with containers that are used like arrays. 2015-01-12 13:17:56 +00:00
clang-query Add a makefile for clang-query. Patch by Alex Horn! 2014-02-18 19:46:01 +00:00
clang-rename Revert rL215947: "[clang-rename] revert r215839" 2014-08-20 01:39:05 +00:00
clang-tidy [clang-tidy] Use shrink_to_fit instead of copy and swap trick 2015-01-23 15:10:37 +00:00
modularize
module-map-checker
pp-trace Prune CRLF. 2014-10-27 12:37:26 +00:00
remove-cstr-calls
.clang-format
CMakeLists.txt Revert rL215947: "[clang-rename] revert r215839" 2014-08-20 01:39:05 +00:00
Makefile Try to unbreak the Makefile build. 2014-08-13 13:20:04 +00:00
lit.cfg Make the clang-tidy-diff.py test conditional on the presence of Python 2.7. Use the python binary from the configuration. 2014-06-26 16:32:26 +00:00
lit.site.cfg.in Make the clang-tidy-diff.py test conditional on the presence of Python 2.7. Use the python binary from the configuration. 2014-06-26 16:32:26 +00:00