summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/modernize-pass-by-value.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Move more checks from misc- to performance-Alexander Kornienko2017-11-281-1/+1
| | | | | | | | | | | | | | | | Summary: rename_check.py misc-move-const-arg performance-move-const-arg rename_check.py misc-noexcept-move-constructor performance-noexcept-move-constructor Reviewers: hokein, xazax.hun Reviewed By: xazax.hun Subscribers: rnkovacs, klimek, mgorny, xazax.hun, cfe-commits Differential Revision: https://reviews.llvm.org/D40507 llvm-svn: 319183
* [clang-tidy] Fix check for trivially copyable types in modernize-pass-by-valueMalcolm Parsons2017-01-121-2/+16
| | | | | | | | | | | | | | | Summary: rL270567 excluded trivially copyable types from being moved by modernize-pass-by-value, but it didn't exclude references to them. Change types used in the tests to not be trivially copyable. Reviewers: madsravn, aaron.ballman, alexfh Subscribers: JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D28614 llvm-svn: 291796
* [clang-tidy] Don't rely on <array> being available.Benjamin Kramer2016-05-241-6/+5
| | | | | | | The STL isn't necessarily around when running tests. Make our own fake std::array to test this. llvm-svn: 270581
* [clang-tidy] modernize-pass-by-value bugfix. Reverting lit-style testMads Ravn2016-05-241-5/+4
| | | | | | | | | | Adding to revision 270567. The lit-style test was wrong. This is being fixed by this commit. This is the bug on bugzilla: https://llvm.org/bugs/show_bug.cgi?id=27731 This is the code review on phabricator: http://reviews.llvm.org/D20365 llvm-svn: 270575
* [clang-tidy] modernize-pass-by-value bugfix. Reverting lit-style testMads Ravn2016-05-241-18/+16
| | | | | | | | | | Adding to revision 270565. The lit-style test was wrong. This is being fixed by this commit. This is the bug on bugzilla: https://llvm.org/bugs/show_bug.cgi?id=27731 This is the code review on phabricator: http://reviews.llvm.org/D20365 llvm-svn: 270567
* [clang-tidy] modernize-pass-by-value bugfixMads Ravn2016-05-241-15/+25
| | | | | | | | | | | | Modified the clang-tidy PassByValue check. It now stops adding std::move to type which is trivially copyable because that caused the clang-tidy MoveConstArg to complain and revert, thus creating a cycle. I have also added a lit-style test to verify the bugfix. This is the bug on bugzilla: https://llvm.org/bugs/show_bug.cgi?id=27731 This is the code review on phabricator: http://reviews.llvm.org/D20365 llvm-svn: 270565
* Commiting for http://reviews.llvm.org/D20365Mads Ravn2016-05-231-7/+0
| | | | llvm-svn: 270473
* Commiting for http://reviews.llvm.org/D20365Mads Ravn2016-05-231-0/+6
| | | | llvm-svn: 270472
* 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
* [clang-tidy] Use a python script instead of a shell script to run clang-tidy ↵Alexander Kornienko2015-08-201-2/+1
| | | | | | | | | | | | | | | | | | | tests. Summary: Add check_clang_tidy.py script that is functionally identical to the check_clang_tidy.py, but should also be functional on windows. I've verified that the script works on linux. Would be nice if folks using Windows could test the patch before I break windows bots ;) Reviewers: chapuni, aaron.ballman Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12180 llvm-svn: 245583
* clang-tools-extra/test/clang-tidy/modernize-pass-by-value.cpp: Tweak not to ↵NAKAMURA Takumi2015-08-151-1/+1
| | | | | | override -std=c++11. llvm-svn: 245147
* clang-tools-extra/test/clang-tidy/modernize-pass-by-value.cpp: Appease ↵NAKAMURA Takumi2015-08-151-1/+1
| | | | | | targeting MS to give -fno-delayed-template-parsing. llvm-svn: 245146
* [clang-tidy] Create clang-tidy module modernize. Add pass-by-value check.Alexander Kornienko2015-08-141-0/+197
This is the first step for migrating cppmodernize to clang-tidy. http://reviews.llvm.org/D11946 Patch by Angel Garcia! llvm-svn: 245045
OpenPOWER on IntegriCloud