summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-dangling-field.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move detection of reference members binding to temporaries from building ofRichard Smith2013-06-121-1/+15
| | | | | | | CXXCtorInitializers to the point where we perform the questionable lifetime extension. This exposed a selection of false negatives in the warning. llvm-svn: 183869
* Teach -Wdangling-field to warn about temporaries bound to references asChandler Carruth2011-09-031-0/+37
well. Also, clean up the flow of the code a bit, and factor things more nicely. Finally, add the test case that was missing from my previous commit (sorry), with new tests added to cover temporaries and other fun cases. llvm-svn: 139077
OpenPOWER on IntegriCloud