Alexander Kornienko
5816a8bbb1
[clang-tidy] Fix diag message for catch-by-value
...
Summary:
```
catch (std::exception ex)
{
}
```
Was flagged with "catch handler catches a pointer value".
Reviewers: alexfh, aaron.ballman
Reviewed By: aaron.ballman
Subscribers: cfe-commits, JDevlieghere
Patch by Florian Gross!
Differential Revision: https://reviews.llvm.org/D30592
llvm-svn: 298608
2017-03-23 15:17:44 +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
f6e237e606
Explicitly enable -fcxx-exceptions for this test to appease Windows build bots.
...
llvm-svn: 249905
2015-10-09 21:15:00 +00:00
Aaron Ballman
fd78cc88cf
Add a new checker that tests whether a throw expression throws by value, and whether a catch statement catches by reference.
...
Patch by Tobias Langner!
llvm-svn: 249899
2015-10-09 20:42:44 +00:00