Skip to content

Commit ec095b7

Browse files
committed
[clangd] Fix builds after 0255b21
1 parent 7c3603e commit ec095b7

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

clang-tools-extra/clangd/refactor/tweaks/ScopifyEnum.cpp

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,28 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "ParsedAST.h"
10+
#include "Protocol.h"
11+
#include "Selection.h"
12+
#include "SourceCode.h"
1013
#include "XRefs.h"
1114
#include "refactor/Tweak.h"
15+
#include "clang/AST/Decl.h"
16+
#include "clang/AST/DeclBase.h"
17+
#include "clang/Basic/LLVM.h"
1218
#include "clang/Basic/SourceLocation.h"
1319
#include "clang/Basic/SourceManager.h"
1420
#include "clang/Tooling/Core/Replacement.h"
21+
#include "llvm/ADT/SmallVector.h"
22+
#include "llvm/ADT/StringMap.h"
1523
#include "llvm/ADT/StringRef.h"
1624
#include "llvm/Support/Error.h"
25+
#include "llvm/Support/MemoryBuffer.h"
1726

27+
#include <cstddef>
1828
#include <functional>
29+
#include <memory>
30+
#include <string>
31+
#include <utility>
1932

2033
namespace clang::clangd {
2134
namespace {
@@ -87,9 +100,9 @@ Expected<Tweak::Effect> ScopifyEnum::apply(const Selection &Inputs) {
87100
SM->getBufferData(SM->getMainFileID())));
88101

89102
if (auto Err = addClassKeywordToDeclarations())
90-
return Err;
103+
return std::move(Err);
91104
if (auto Err = scopifyEnumValues())
92-
return Err;
105+
return std::move(Err);
93106

94107
return E;
95108
}

0 commit comments

Comments
 (0)