aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2023-08-28 20:04:23 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2023-08-28 20:05:14 +0000
commit752f87cd6a1a354790f4728848827077467ac15d (patch)
tree9e0d92dda15f62601462e201a79d73f24911c6f6 /clang/lib/Interpreter/Interpreter.cpp
parentcd591e02d4563d4b90792ed5f441e1cf5b30443e (diff)
downloadllvm-752f87cd6a1a354790f4728848827077467ac15d.zip
llvm-752f87cd6a1a354790f4728848827077467ac15d.tar.gz
llvm-752f87cd6a1a354790f4728848827077467ac15d.tar.bz2
Revert "Reland "[clang-repl] support code completion at a REPL.""
This reverts commit 5ab25a42ba70c4b50214b0e78eaaccd30696fa09 due to forgotten files.
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();