summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/DanglingHandleCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] rename_check.py misc-dangling-handle bugprone-dangling-handleAlexander Kornienko2017-11-241-184/+0
| | | | | | | | | | | | Reviewers: hokein Reviewed By: hokein Subscribers: mgorny, xazax.hun, cfe-commits Differential Revision: https://reviews.llvm.org/D40389 llvm-svn: 318941
* Adapt clang-tidy checks to changing semantics of hasDeclaration.Manuel Klimek2017-08-021-13/+20
| | | | | | Differential Revision: https://reviews.llvm.org/D36154 llvm-svn: 309810
* Fix clang-tidy patterns to adapt to newly added ExprWithCleanups nodes.Tim Shen2016-06-211-1/+3
| | | | | | | | | | | | Summary: This is a fix for the new ExprWithCleanups introduced by clang's temporary variable lifetime marks change. Reviewers: bkramer, sbenza, angelgarcia, alexth Subscribers: rsmith, cfe-commits Differential Revision: http://reviews.llvm.org/D21243 llvm-svn: 273310
* Apply performance-unnecessary-value-param to clang-tidy.Benjamin Kramer2016-06-151-5/+5
| | | | | | With minor manual tweaks. No functionality change intended. llvm-svn: 272795
* [ASTMatchers] Added ignoringParenImpCasts to has matchersPiotr Padlewski2016-05-311-9/+12
| | | | | | | | | has matcher changed behaviour, and now it matches "as is" and doesn't skip implicit and paren casts http://reviews.llvm.org/D20801 llvm-svn: 271289
* [clang-tidy] Lift parsing of sequence of names functions to utils.Etienne Bergeron2016-05-101-17/+3
| | | | | | | | | | | | | | | | Summary: Lift some common code used by multiple checkers. This function is also used by checkers that are coming. It is quite common for a checker to parse a list of names. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19846 llvm-svn: 269065
* [clang-tidy] Adjust dangling references check to ASTMatcher changes.Gabor Horvath2016-03-301-9/+10
| | | | llvm-svn: 264859
* [clang-tidy] Add check to detect dangling references in value handlers.Samuel Benzaquen2016-03-291-0/+185
Summary: Add check misc-dangling-handle to detect dangling references in value handlers like std::experimental::string_view. It provides a configuration option to specify other handle types that should also be checked. Right now it detects: - Construction from temporaries. - Assignment from temporaries. - Return statements from temporaries or locals. - Insertion into containers from temporaries. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D17811 llvm-svn: 264759
OpenPOWER on IntegriCloud