summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/AssignOperatorSignatureCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] New: checker misc-unconventional-assign-operator replacing ↵Gabor Horvath2016-05-041-80/+0
| | | | | | | | | | | | | | misc-assign-operator-signature Summary: Finds return statements in assign operator bodies where the return value is different from '*this'. Only assignment operators with correct return value Class& are checked. Reviewers: aaron.ballman, alexfh, sbenza Subscribers: o.gyorgy, baloghadamsoftware, LegalizeAdulthood, aaron.ballman, Eugene.Zelenko, xazax.hun, cfe-commits Differential Revision: http://reviews.llvm.org/D18265 llvm-svn: 268492
* [clang-tidy] misc-assign-operator-signature checker checks return value of ↵Gabor Horvath2016-03-241-7/+8
| | | | | | | | | | | | | | all assign operators The return value of every assign operator should be Type&, not only for copy and move assign operators. Patch by Adam Balogh! Reviewers: hokein, alexfh Differential Revision: http://reviews.llvm.org/D18264 llvm-svn: 264251
* Make a bunch of static arrays const.Craig Topper2015-10-181-1/+1
| | | | llvm-svn: 250641
* Expose the clang-tidy misc-assign-operator-signature checker as ↵Aaron Ballman2015-10-131-6/+7
| | | | | | cppcoreguidelines-c-copy-assignment-signature. llvm-svn: 250165
* Refactors AST matching code to use the new AST matcher names. This patch ↵Aaron Ballman2015-09-171-8/+11
| | | | | | 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-24/+24
| | | | llvm-svn: 246444
* Disable clang-tidy misc checkers when not compiling in C++ mode. Many of the ↵Aaron Ballman2015-08-281-20/+26
| | | | | | 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] 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
* Verify assign operator signatures.Samuel Benzaquen2015-02-091-0/+67
Summary: Warn when the return type of assign operators is not Class&. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6667 llvm-svn: 228583
OpenPOWER on IntegriCloud