================ @@ -37,16 +39,15 @@ static std::vector<std::string> runComp(clang::Interpreter &MainInterp, std::vector<std::string> Results; std::vector<std::string> Comps; - - codeComplete( - const_cast<clang::CompilerInstance *>((*Interp)->getCompilerInstance()), - Prefix, /* Lines */ 1, Prefix.size(), MainInterp.getCompilerInstance(), - Results); + auto *MainCI = + const_cast<clang::CompilerInstance *>((*Interp)->getCompilerInstance()); ---------------- capfredf wrote:
This won't work. Interp is of `Expected<std::unique_ptr<Interpreter>>` https://github.com/llvm/llvm-project/pull/67349 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits