[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-10 Thread Malcolm Parsons via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286472: [clang-tidy] Add modernize-use-equals-delete check (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D26138?vs=76971&id=77500#toc Repository: rL LLVM https://r

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-10 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thank you! Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:58 + << FixItHint::CreateInsertion(StartLoc, "public: ") + << FixItHint::Cr

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-05 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76971. malcolm.parsons added a comment. Check for non-public deleted methods. Remove imperfect FixItHint. Add FIXME comments. https://reviews.llvm.org/D26138 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-05 Thread Malcolm Parsons via cfe-commits
malcolm.parsons planned changes to this revision. malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:58 + << FixItHint::CreateInsertion(StartLoc, "public: ") + << FixItHint::CreateInsertion(AfterLoc, " private:"); +} ---

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-02 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:58 + << FixItHint::CreateInsertion(StartLoc, "public: ") + << FixItHint::CreateInsertion(AfterLoc, " private:"); +} malcolm.parsons wrote: > aaron.ballman wro

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-02 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:58 + << FixItHint::CreateInsertion(StartLoc, "public: ") + << FixItHint::CreateInsertion(AfterLoc, " private:"); +} aaron.ballman wrote: > I am on the fence

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-02 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76729. malcolm.parsons added a comment. Take out renaming of modernize-use-default. https://reviews.llvm.org/D26138 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseEqualsDeleteChe

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-02 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Can you split the modernize-use-default changes into a separate patch? I think that change requires additional discussion, because renaming the check may break users relying on the old name. The changes aren't really related (aside from naming consistency), and I'

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76561. malcolm.parsons added a comment. Add quick hack to make methods public. Cleanup around replacements should be enhanced with rules to remove empty private/protected/public sections. private: public: -> public: public: private: -> private: https

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76558. malcolm.parsons added a comment. Add FIXME comment. https://reviews.llvm.org/D26138 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseDefaultCheck.cpp clang-tidy/modernize/

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76557. malcolm.parsons added a comment. Reword diagnostic. https://reviews.llvm.org/D26138 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseDefaultCheck.cpp clang-tidy/modernize/

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:29 +cxxMethodDecl( +anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), +cxxDestructorDecl())); malcolm.parsons wrot

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:29 +cxxMethodDecl( +anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), +cxxDestructorDecl())); aaron.ballman wrot

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:29 +cxxMethodDecl( +anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), +cxxDestructorDecl())); malcolm.parsons wrot

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76529. malcolm.parsons added a comment. Rename modernize-use-default to modernize-use-equals-default https://reviews.llvm.org/D26138 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/U

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-10-31 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76493. malcolm.parsons added a comment. Fix comment. Rename variable. Use global. https://reviews.llvm.org/D26138 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseEqualsDeleteCheck

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-10-31 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:29 +cxxMethodDecl( +anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), +cxxDestructorDecl())); aaron.ballman wrot

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-10-31 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:29 +cxxMethodDecl( +anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), +cxxDestructorDecl())); How about a conversi

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-10-31 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. It'll be good idea to rename //modernize-use-default// in similar fashion, since both checks are closely relate and in both cases keywords are ambiguous. https://reviews.llvm.org/D26138 ___ cfe-commits mailing list c