summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/readability/ShrinkToFitCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Move user-defined matches to unnamed namespaces to prevent ODR ↵Alexander Kornienko2015-06-171-6/+4
| | | | | | violations. llvm-svn: 239904
* [clang-tidy] Remove static StringSet in favor of binary search.Benjamin Kramer2015-04-171-12/+8
| | | | | | | | The number of strings is so small that performance doesn't matter and adding the thread safe static initialization and destruction overhead is just not worth it. No functional change intended. llvm-svn: 235192
* [clang-tidy] Fix namespace comments. NFC.Alexander Kornienko2015-03-041-2/+2
| | | | llvm-svn: 231267
* [clang-tidy] Refactor: Move readability checks to namespace ↵Alexander Kornienko2015-03-021-0/+2
| | | | | | | | | | | | | clang::tidy::readability clang-tidy checks are organized into modules. This refactoring moves the readability module checks into the namespace clang::tidy::readability http://reviews.llvm.org/D7997 Patch by Richard Thomson! llvm-svn: 230946
* Re-sort includes using the LLVM utils/sort_includes.py script.Chandler Carruth2015-02-131-3/+2
| | | | llvm-svn: 229087
* [clang-tidy] Use shrink_to_fit instead of copy and swap trickAlexander Kornienko2015-01-231-0/+109
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
OpenPOWER on IntegriCloud