[PATCH] D49911: Summary:Add clang::reinitializes attribute

2018-08-13 Thread Martin Böhme via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC339569: Summary:Add clang::reinitializes attribute (authored by mboehme, committed by ). Changed prior to commit: https://reviews.llvm.org/D49911?vs=160348&id=160351#toc Repository: rC Clang https:/

[PATCH] D49911: Summary:Add clang::reinitializes attribute

2018-08-13 Thread Martin Böhme via Phabricator via cfe-commits
mboehme updated this revision to Diff 160348. mboehme marked 2 inline comments as done. mboehme added a comment. Rebase to head. Repository: rC Clang https://reviews.llvm.org/D49911 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/Sema/SemaDeclAttr.cpp test/Sema

[PATCH] D49911: Summary:Add clang::reinitializes attribute

2018-08-03 Thread Martin Böhme via Phabricator via cfe-commits
mboehme marked 2 inline comments as done. mboehme added a comment. Thanks for the review! In https://reviews.llvm.org/D49911#1186185, @aaron.ballman wrote: > The attribute itself is looking reasonable aside from some minor nits, but > this should not be committed until the clang-tidy functional

[PATCH] D49911: Summary:Add clang::reinitializes attribute

2018-08-03 Thread Martin Böhme via Phabricator via cfe-commits
mboehme updated this revision to Diff 159007. mboehme marked an inline comment as done. mboehme added a comment. Various changes in response to review comments. Repository: rC Clang https://reviews.llvm.org/D49911 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/S

[PATCH] D49911: Summary:Add clang::reinitializes attribute

2018-08-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. The attribute itself is looking reasonable aside from some minor nits, but this should not be committed until the clang-tidy functionality is approved (since it has no utility be

[PATCH] D49911: Summary:Add clang::reinitializes attribute

2018-07-30 Thread Martin Böhme via Phabricator via cfe-commits
mboehme marked 3 inline comments as done. mboehme added a comment. > Should this attribute have some semantic checking that ensures the non-static > data members are accessed in the function that claims it reinitializes the > object? I think this would be hard to do in a way that provides meani

[PATCH] D49911: Summary:Add clang::reinitializes attribute

2018-07-30 Thread Martin Böhme via Phabricator via cfe-commits
mboehme updated this revision to Diff 158051. mboehme added a comment. Various changes in response to reviewer comments. Repository: rC Clang https://reviews.llvm.org/D49911 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/Sema/SemaDeclAttr.cpp test/SemaCXX/attr

[PATCH] D49911: Summary:Add clang::reinitializes attribute

2018-07-28 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Should this attribute have some semantic checking that ensures the non-static data members are accessed in the function that claims it reinitializes the object? Otherwise, it seems like this would not trigger any diagnostics: class C { int a, b; public:

[PATCH] D49911: Summary:Add clang::reinitializes attribute

2018-07-27 Thread Martin Böhme via Phabricator via cfe-commits
mboehme created this revision. Herald added a subscriber: cfe-commits. This is for use by clang-tidy's bugprone-use-after-move check -- see corresponding clang-tidy patch at https://reviews.llvm.org/D49910. Repository: rC Clang https://reviews.llvm.org/D49911 Files: include/clang/Basic/Att