r313027 - Fix GCC build error and warnings from r313025
Alex Lorenz via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 12 06:03:42 PDT 2017
Author: arphaman
Date: Tue Sep 12 06:03:42 2017
New Revision: 313027
URL: http://llvm.org/viewvc/llvm-project?rev=313027&view=rev
Log:
Fix GCC build error and warnings from r313025
Modified:
cfe/trunk/unittests/Tooling/RefactoringActionRulesTest.cpp
Modified: cfe/trunk/unittests/Tooling/RefactoringActionRulesTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/RefactoringActionRulesTest.cpp?rev=313027&r1=313026&r2=313027&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/RefactoringActionRulesTest.cpp (original)
+++ cfe/trunk/unittests/Tooling/RefactoringActionRulesTest.cpp Tue Sep 12 06:03:42 2017
@@ -42,6 +42,9 @@ createReplacements(const std::unique_ptr
void handle(AtomicChanges SourceReplacements) override {
Result = std::move(SourceReplacements);
}
+ void handle(SymbolOccurrences Occurrences) override {
+ RefactoringResultConsumer::handle(std::move(Occurrences));
+ }
public:
Optional<Expected<AtomicChanges>> Result;
@@ -183,6 +186,9 @@ Optional<SymbolOccurrences> findOccurren
void handle(SymbolOccurrences Occurrences) override {
Result = std::move(Occurrences);
}
+ void handle(AtomicChanges Changes) override {
+ RefactoringResultConsumer::handle(std::move(Changes));
+ }
public:
Optional<SymbolOccurrences> Result;
@@ -201,7 +207,7 @@ TEST_F(RefactoringActionRulesTest, Retur
Occurrences.push_back(SymbolOccurrence(
SymbolName("test"), SymbolOccurrence::MatchingSymbol,
Selection.getRange().getBegin()));
- return Occurrences;
+ return std::move(Occurrences);
},
requiredSelection(
selection::identity<selection::SourceSelectionRange>()));
More information about the cfe-commits
mailing list