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.

llvm-svn: 349669

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

index 7123fc3..b8f996d 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 61aa660..779006b 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;