LGTM.com - false positive for move and copy assignment operators not returning *this (C++) #7035
Labels
acknowledged
GitHub staff acknowledges this issue
C++
false-positive
not security
This issue does not relate to a security query
The error is reported for these operators when
*thisis returned indirectly via a function call. For example:https://lgtm.com/projects/g/oknenavin/cxon/snapshot/9103621a01a81595999681a97870d8930d56aa58/files/src/cxon/lang/cbor/node/node.hxx?sort=name&dir=ASC&mode=heatmap#xc6e83398218bd018:1
we have:
where
value::move_assignreturns its first argument, which is*this.The text was updated successfully, but these errors were encountered: