]> granicus.if.org Git - clang/commitdiff
PR40096: Forwards-compatible with C++20 rule regarding aggregates not having user...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Dec 2018 19:33:35 +0000 (19:33 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Dec 2018 19:33:35 +0000 (19:33 +0000)
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

lib/Tooling/Refactoring/ASTSelection.cpp
tools/clang-refactor/TestSupport.h

index 7123fc32cec9b421a79bbfb7e17a0e7c6e1ccd11..b8f996d8218c7eca6c15b0187e74952cfae068ad 100644 (file)
@@ -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<SelectedASTNode::ReferenceType, 8> Parents;
 
index 61aa660733fbc27438a36577c0600eb44430371f..779006b0c5022b43fce09021f911cbddcc702a2e 100644 (file)
@@ -59,9 +59,6 @@ struct TestSelectionRangesInFile {
   };
   std::vector<RangeGroup> GroupedRanges;
 
-  TestSelectionRangesInFile(TestSelectionRangesInFile &&) = default;
-  TestSelectionRangesInFile &operator=(TestSelectionRangesInFile &&) = default;
-
   bool foreachRange(const SourceManager &SM,
                     llvm::function_ref<void(SourceRange)> Callback) const;