summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Move checks from misc- to performance-Alexander Kornienko2017-11-271-163/+0
| | | | | | | | | | | | | | | | Summary: rename_check.py misc-move-constructor-init performance-move-constructor-init rename_check.py misc-inefficient-algorithm performance-inefficient-algorithm Reviewers: hokein, aaron.ballman Reviewed By: hokein, aaron.ballman Subscribers: aaron.ballman, mgorny, xazax.hun, cfe-commits Differential Revision: https://reviews.llvm.org/D40487 llvm-svn: 319023
* [clang-tidy] Cleaning up language options.Gabor Horvath2016-09-241-1/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D24881 llvm-svn: 282319
* [ASTMatchers] Added ignoringParenImpCasts to has matchersPiotr Padlewski2016-05-311-6/+7
| | | | | | | | | has matcher changed behaviour, and now it matches "as is" and doesn't skip implicit and paren casts http://reviews.llvm.org/D20801 llvm-svn: 271289
* [clang-tidy] Fix check broken in rL263822.Samuel Benzaquen2016-03-211-1/+2
| | | | | | Add names missing from rL263822 and add tests to prevent future omissions. llvm-svn: 263963
* [clang-tidy] Use hasAnyName() instead of matchesName().Samuel Benzaquen2016-03-181-5/+8
| | | | | | | | | matchesName() uses regular expressions and it is very slow. hasAnyName() gives the same result and it is much faster. A benchmark (with all the checks enabled) shows a ~5% speed up of clang-tidy. llvm-svn: 263822
* Refactors AST matching code to use the new AST matcher names. This patch ↵Aaron Ballman2015-09-171-4/+4
| | | | | | correlates to r247885 which performs the AST matcher rename in Clang. llvm-svn: 247886
* Using an early return as it is more clear; NFC.Aaron Ballman2015-08-311-27/+28
| | | | llvm-svn: 246447
* Disable clang-tidy misc checkers when not compiling in C++ mode. Many of the ↵Aaron Ballman2015-08-281-24/+29
| | | | | | checkers do not require additional testing as the tests will not compile for other languages or modes, or the checkers would never match a valid construct. llvm-svn: 246318
* [clang-tidy] Support replacements in macro arguments in ↵Alexander Kornienko2015-07-311-11/+34
| | | | | | | | | | | | | | | | misc-inefficient-algorithm Summary: Support replacements in macro arguments in the misc-inefficient-algorithm check. Reviewers: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D11677 llvm-svn: 243747
* [clang-tidy] Refactor: Move misc clang-tidy checks to namespace ↵Alexander Kornienko2015-03-021-0/+2
| | | | | | | | | | | | | clang::tidy::misc clang-tidy checks are organized into modules. This refactoring moves the misc module checks into the namespace clang::tidy::misc http://reviews.llvm.org/D7996 Patch by Richard Thomson! llvm-svn: 230950
* [clang-tidy] Fixed two wrong fix-it cases in misc-inefficient-algorithm checker.Gabor Horvath2015-02-171-2/+19
| | | | llvm-svn: 229552
* [clang-tidy] Fixed a false positive case in misc-inefficient-algorithm checker.Gabor Horvath2015-02-121-2/+2
| | | | llvm-svn: 228945
* [clang-tidy] Checker for inefficient use of algorithms on associative containersGabor Horvath2015-02-071-0/+110
Summary: Associative containers implements some of the algorithms as methods which should be preferred to the algorithms in the algorithm header. The methods can take advantage of the order of the elements. Reviewers: alexfh Reviewed By: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D7246 llvm-svn: 228505
OpenPOWER on IntegriCloud