This revision was not accepted when it landed; it landed in state "Needs
Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL330377: [CFG] [analyzer] Don't treat argument
constructors as temporary constructors. (authored by dergachev, committed by
This revision was not accepted when it landed; it landed in state "Needs
Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rC330377: [CFG] [analyzer] Don't treat argument
constructors as temporary constructors. (authored by dergachev, committed by
NoQ updated this revision to Diff 142505.
NoQ added a comment.
Add tests where the argument is passed by reference. These tests work correctly
(i.e. they correctly identify the argument constructor as a temporary
constructor) because such constructors would include a
`MaterializeTemporaryExpr`
NoQ created this revision.
NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet.
Herald added subscribers: cfe-commits, rnkovacs.
Function argument constructors (that are used for passing objects into
functions by value) are completely unlike temporary object constructor