summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/MoveConstructorInitCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Cleaning namespaces to be more consistant across checkers.Etienne Bergeron2016-05-021-0/+2
| | | | | | | | | | | | | | Summary: The goal of the patch is to bring checkers in their appropriate namespace. This path doesn't change any behavior. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19811 llvm-svn: 268264
* Disable part of the misc-move-constructor-init checker when the check is ↵Aaron Ballman2016-01-081-16/+22
| | | | | | enabled through cert-oop11-cpp. The CERT guideline does not cover moveable parameters as part of the OOP11-CPP recommendation, just copy construction from move constructors. llvm-svn: 257177
* Improved the misc-move-constructor-init check to identify arguments that are ↵Aaron Ballman2015-10-061-3/+92
| | | | | | | | 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
* Refactors AST matching code to use the new AST matcher names. This patch ↵Aaron Ballman2015-09-171-8/+10
| | | | | | 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-11/+12
| | | | llvm-svn: 246447
* Disable clang-tidy misc checkers when not compiling in C++ mode. Many of the ↵Aaron Ballman2015-08-281-9/+13
| | | | | | 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
* Add a new clang-tidy check (misc-move-constructor-init) that diagnoses move ↵Aaron Ballman2015-08-201-0/+77
constructor initializations that call copy constructors instead of move constructors. llvm-svn: 245571
OpenPOWER on IntegriCloud