File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " ParsedAST.h"
10
+ #include " Protocol.h"
11
+ #include " Selection.h"
12
+ #include " SourceCode.h"
10
13
#include " XRefs.h"
11
14
#include " refactor/Tweak.h"
15
+ #include " clang/AST/Decl.h"
16
+ #include " clang/AST/DeclBase.h"
17
+ #include " clang/Basic/LLVM.h"
12
18
#include " clang/Basic/SourceLocation.h"
13
19
#include " clang/Basic/SourceManager.h"
14
20
#include " clang/Tooling/Core/Replacement.h"
21
+ #include " llvm/ADT/SmallVector.h"
22
+ #include " llvm/ADT/StringMap.h"
15
23
#include " llvm/ADT/StringRef.h"
16
24
#include " llvm/Support/Error.h"
25
+ #include " llvm/Support/MemoryBuffer.h"
17
26
27
+ #include < cstddef>
18
28
#include < functional>
29
+ #include < memory>
30
+ #include < string>
31
+ #include < utility>
19
32
20
33
namespace clang ::clangd {
21
34
namespace {
@@ -87,9 +100,9 @@ Expected<Tweak::Effect> ScopifyEnum::apply(const Selection &Inputs) {
87
100
SM->getBufferData (SM->getMainFileID ())));
88
101
89
102
if (auto Err = addClassKeywordToDeclarations ())
90
- return Err;
103
+ return std::move ( Err) ;
91
104
if (auto Err = scopifyEnumValues ())
92
- return Err;
105
+ return std::move ( Err) ;
93
106
94
107
return E;
95
108
}
You can’t perform that action at this time.
0 commit comments