summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-throw-by-value-catch-by-reference.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Fix diag message for catch-by-valueAlexander Kornienko2017-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* Explicitly enable -fcxx-exceptions for this test to appease Windows build bots.Aaron Ballman2015-10-091-1/+1
| | | | llvm-svn: 249905
* Add a new checker that tests whether a throw expression throws by value, and ↵Aaron Ballman2015-10-091-0/+156
whether a catch statement catches by reference. Patch by Tobias Langner! llvm-svn: 249899
OpenPOWER on IntegriCloud