summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-move-constructor-init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Move checks from misc- to performance-Alexander Kornienko2017-11-271-154/+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] Supresses misc-move-constructor-init warning for const fields.Alexander Kornienko2017-02-081-0/+10
| | | | | | | | Patch by CJ DiMeglio! Differential revision: https://reviews.llvm.org/D28973 llvm-svn: 294459
* [clang-tidy] Remove duplicated check from move-constructor-initMalcolm Parsons2016-12-171-4/+8
| | | | | | | | | | | | | | | | | | | | Summary: An addition to the move-constructor-init check was duplicating the modernize-pass-by-value check. Remove the additional check and UseCERTSemantics option. Run the move-constructor-init test with both checks enabled. Fix modernize-pass-by-value false-positive when initializing a base class. Add option to modernize-pass-by-value to only warn about parameters that are already values. Reviewers: alexfh, flx, aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26453 llvm-svn: 290051
* [clang-tidy] MoveConstructorInitCheck - Add parameter name to check message.Felix Berger2016-05-031-1/+1
| | | | | | | | | | Reviewers: alexfh Subscribers: aaron.ballman, cfe-commits Differential Revision: http://reviews.llvm.org/D19849 llvm-svn: 268461
* Make isExpensiveToCopy() tri-state.Manuel Klimek2015-10-231-5/+0
| | | | | | This allows returning "don't know" for dependent types. llvm-svn: 251103
* Switch check_clang_tidy to argparse and add a -resource-dir argument.Manuel Klimek2015-10-221-1/+1
| | | | | | | -resource-dir can be used to inject non-standard resource dirs via the lit site config. llvm-svn: 251021
* Add %check_clang_tidy and %clang_tidy_diff.Manuel Klimek2015-10-221-1/+1
| | | | | | | | | | With this, site specific lit configs can inject parameters into the test scripts if they need site specific parameters. Next up: enable check_clang_tidy to take a resource dir to enable non-standard locations for builtin includes. llvm-svn: 251010
* Improved the misc-move-constructor-init check to identify arguments that are ↵Aaron Ballman2015-10-061-78/+145
| | | | | | | | passed by value but copy assigned to class data members when the non-deleted move constructor is a better fit. Patch by Felix Berger! llvm-svn: 249429
* Change the test to use the new python script instead of the more verbose RUN ↵Aaron Ballman2015-08-201-5/+5
| | | | | | line. llvm-svn: 245600
* Add a new clang-tidy check (misc-move-constructor-init) that diagnoses move ↵Aaron Ballman2015-08-201-0/+78
constructor initializations that call copy constructors instead of move constructors. llvm-svn: 245571
OpenPOWER on IntegriCloud