From: David Blaikie Date: Wed, 19 Dec 2018 19:33:35 +0000 (+0000) Subject: PR40096: Forwards-compatible with C++20 rule regarding aggregates not having user... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4f56bec7bc91fa4437b8e7ce1ac6e5a017766d8;p=clang PR40096: Forwards-compatible with C++20 rule regarding aggregates not having user-declared ctors Looks like these were in place to make these types move-only. That's generally not a feature that the type should prescribe (unless it's an inherent limitation) - instead leaving it up to the users of a type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349669 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Tooling/Refactoring/ASTSelection.cpp b/lib/Tooling/Refactoring/ASTSelection.cpp index 7123fc32ce..b8f996d821 100644 --- a/lib/Tooling/Refactoring/ASTSelection.cpp +++ b/lib/Tooling/Refactoring/ASTSelection.cpp @@ -250,8 +250,6 @@ static bool hasAnyDirectChildrenWithKind(const SelectedASTNode &Node, namespace { struct SelectedNodeWithParents { - SelectedNodeWithParents(SelectedNodeWithParents &&) = default; - SelectedNodeWithParents &operator=(SelectedNodeWithParents &&) = default; SelectedASTNode::ReferenceType Node; llvm::SmallVector Parents; diff --git a/tools/clang-refactor/TestSupport.h b/tools/clang-refactor/TestSupport.h index 61aa660733..779006b0c5 100644 --- a/tools/clang-refactor/TestSupport.h +++ b/tools/clang-refactor/TestSupport.h @@ -59,9 +59,6 @@ struct TestSelectionRangesInFile { }; std::vector GroupedRanges; - TestSelectionRangesInFile(TestSelectionRangesInFile &&) = default; - TestSelectionRangesInFile &operator=(TestSelectionRangesInFile &&) = default; - bool foreachRange(const SourceManager &SM, llvm::function_ref Callback) const;