Skip to content

Commit

Permalink
Update lib/Interpreter/Compatibility.h
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
alexander-penev and github-actions[bot] authored Apr 30, 2024
1 parent 049b70b commit 75a7711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Interpreter/Compatibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ inline llvm::Error Undo(clang::Interpreter& I, unsigned N = 1) {
inline void codeComplete(clang::Interpreter& I, const char* code, std::vector<std::string>& Results) {
#if CLANG_VERSION_MAJOR >= 18
std::vector<std::string> results;
auto *MainCI = I.getCompilerInstance();
const auto *MainCI = I.getCompilerInstance();
auto CC = clang::ReplCodeCompleter();
CC.codeComplete(MainCI, code, /* Lines */ 1, std::string(code).size() + 1, MainCI, results);
printf("!!!%s\n", CC.Prefix.c_str());
Expand Down

0 comments on commit 75a7711

Please sign in to comment.