Manuel Klimek
5fdd843d14
Make isExpensiveToCopy() tri-state.
...
This allows returning "don't know" for dependent types.
llvm-svn: 251103
2015-10-23 10:00:50 +00:00
Manuel Klimek
8f9e444061
Switch check_clang_tidy to argparse and add a -resource-dir argument.
...
-resource-dir can be used to inject non-standard resource dirs via the
lit site config.
llvm-svn: 251021
2015-10-22 14:54:50 +00:00
Manuel Klimek
b91bee06de
Add %check_clang_tidy and %clang_tidy_diff.
...
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
2015-10-22 11:31:44 +00:00
Aaron Ballman
fc4e042bf5
Improved the misc-move-constructor-init check to identify arguments that are 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
2015-10-06 16:27:03 +00:00
Aaron Ballman
7fc9feac3e
Change the test to use the new python script instead of the more verbose RUN line.
...
llvm-svn: 245600
2015-08-20 19:21:07 +00:00
Aaron Ballman
9392ced263
Add a new clang-tidy check (misc-move-constructor-init) that diagnoses move constructor initializations that call copy constructors instead of move constructors.
...
llvm-svn: 245571
2015-08-20 15:52:52 +00:00