Skip to content

Commit

Permalink
Fix 1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-penev committed Apr 30, 2024
1 parent 0e51ef8 commit 71ed6eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Interpreter/Compatibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ getSymbolAddress(const cling::Interpreter& I, llvm::StringRef IRName) {

inline void codeComplete(cling::Interpreter& I, const char* code, std::vector<std::string>& Results) {
std::vector<std::string> results;
cling::Interpreter::CompilationResult compilation_result;
//cling::Interpreter::CompilationResult compilation_result;

compilation_result = I.codeComplete(code, std::string(code).size() + 1, results);
size_t cursor = std::string(code).size() + 1;
I.codeComplete(code, cursor, results);

for (auto& r : results) {
printf("!!!%s\n", r.c_str());
Expand Down

0 comments on commit 71ed6eb

Please sign in to comment.