summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/DanglingHandleCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [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