[clang-tools-extra] ec095b7 - [clangd] Fix builds after 0255b217c3766ce0aa23bd4fb050b447be2a1d26
Kadir Cetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 10 04:55:56 PST 2023
Author: Kadir Cetinkaya
Date: 2023-11-10T13:55:43+01:00
New Revision: ec095b74243bf5db2a70961ecbbde2a30efdccce
URL: https://github.com/llvm/llvm-project/commit/ec095b74243bf5db2a70961ecbbde2a30efdccce
DIFF: https://github.com/llvm/llvm-project/commit/ec095b74243bf5db2a70961ecbbde2a30efdccce.diff
LOG: [clangd] Fix builds after 0255b217c3766ce0aa23bd4fb050b447be2a1d26
Added:
Modified:
clang-tools-extra/clangd/refactor/tweaks/ScopifyEnum.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/refactor/tweaks/ScopifyEnum.cpp b/clang-tools-extra/clangd/refactor/tweaks/ScopifyEnum.cpp
index 357af8c9b679a99..e36b3249bc7b929 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 <cstddef>
#include <functional>
+#include <memory>
+#include <string>
+#include <utility>
namespace clang::clangd {
namespace {
@@ -87,9 +100,9 @@ Expected<Tweak::Effect> 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;
}
More information about the cfe-commits
mailing list