This is an archive of the discontinued LLVM Phabricator instance.

Add macro LLVM_ATTRIBUTE_REINITIALIZES
ClosedPublic

Authored by MaskRay on Sep 24 2018, 9:59 PM.

Details

Summary

This marks legitimate use-after-move (e.g. Found.clear() in rC342925)
which would otherwise be caught by bugprone-use-after-move.

bugprone-use-after-move recognizes this attribute after rCTE339571.

Diff Detail

Event Timeline

MaskRay created this revision.Sep 24 2018, 9:59 PM
mboehme accepted this revision.Sep 25 2018, 12:24 AM
This revision is now accepted and ready to land.Sep 25 2018, 12:24 AM
This revision was automatically updated to reflect the committed changes.