aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2023-08-23 14:45:39 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2023-08-23 14:46:15 +0000
commitf94a937cb37a949cca7a084669c634a87b1d2bb1 (patch)
tree942309e0e4b3cbda67b22a83f1b2cc3ff6155b93 /clang/lib/Interpreter/Interpreter.cpp
parent9e150adaea7be2d87fb13255671584719a560939 (diff)
downloadllvm-f94a937cb37a949cca7a084669c634a87b1d2bb1.zip
llvm-f94a937cb37a949cca7a084669c634a87b1d2bb1.tar.gz
llvm-f94a937cb37a949cca7a084669c634a87b1d2bb1.tar.bz2
Revert "[clang-repl] support code completion at a REPL."
This reverts commit eb0e6c3134ef6deafe0a4958e9e1a1214b3c2f14 due to failures in clangd such as https://lab.llvm.org/buildbot/#/builders/57/builds/29377
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r--clang/lib/Interpreter/Interpreter.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index 7968c62..4e10452 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -11,11 +11,13 @@
//
//===----------------------------------------------------------------------===//
+#include "clang/Interpreter/Interpreter.h"
+
#include "DeviceOffload.h"
#include "IncrementalExecutor.h"
#include "IncrementalParser.h"
-#include "InterpreterUtils.h"
+#include "InterpreterUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Mangle.h"
#include "clang/AST/TypeVisitor.h"
@@ -31,7 +33,6 @@
#include "clang/Driver/Tool.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/TextDiagnosticBuffer.h"
-#include "clang/Interpreter/Interpreter.h"
#include "clang/Interpreter/Value.h"
#include "clang/Lex/PreprocessorOptions.h"
#include "clang/Sema/Lookup.h"
@@ -126,6 +127,7 @@ CreateCI(const llvm::opt::ArgStringList &Argv) {
Clang->getFrontendOpts().DisableFree = false;
Clang->getCodeGenOpts().DisableFree = false;
+
return std::move(Clang);
}
@@ -274,7 +276,6 @@ Interpreter::create(std::unique_ptr<CompilerInstance> CI) {
std::unique_ptr<Interpreter>(new Interpreter(std::move(CI), Err));
if (Err)
return std::move(Err);
-
auto PTU = Interp->Parse(Runtimes);
if (!PTU)
return PTU.takeError();