diff --git a/clang-tools-extra/clangd/refactor/tweaks/ScopifyEnum.cpp b/clang-tools-extra/clangd/refactor/tweaks/ScopifyEnum.cpp index 357af8c9b679a9..e36b3249bc7b92 100644 --- a/clang-tools-extra/clangd/refactor/tweaks/ScopifyEnum.cpp +++ b/clang-tools-extra/clangd/refactor/tweaks/ScopifyEnum.cpp @@ -7,15 +7,28 @@ //===----------------------------------------------------------------------===// #include "ParsedAST.h" +#include "Protocol.h" +#include "Selection.h" +#include "SourceCode.h" #include "XRefs.h" #include "refactor/Tweak.h" +#include "clang/AST/Decl.h" +#include "clang/AST/DeclBase.h" +#include "clang/Basic/LLVM.h" #include "clang/Basic/SourceLocation.h" #include "clang/Basic/SourceManager.h" #include "clang/Tooling/Core/Replacement.h" +#include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/Error.h" +#include "llvm/Support/MemoryBuffer.h" +#include #include +#include +#include +#include namespace clang::clangd { namespace { @@ -87,9 +100,9 @@ Expected ScopifyEnum::apply(const Selection &Inputs) { SM->getBufferData(SM->getMainFileID()))); if (auto Err = addClassKeywordToDeclarations()) - return Err; + return std::move(Err); if (auto Err = scopifyEnumValues()) - return Err; + return std::move(Err); return E; }