================ @@ -23,8 +23,27 @@ namespace clang { class CodeCompletionResult; class CompilerInstance; -void codeComplete(CompilerInstance *InterpCI, llvm::StringRef Content, - unsigned Line, unsigned Col, const CompilerInstance *ParentCI, - std::vector<std::string> &CCResults); +struct ReplCodeCompleter { + ReplCodeCompleter() = default; + std::string Prefix; + + /* + @param InterpCI The compiler instance that is used to trigger code completion + + @param Content The string where code completion is triggered. + + @param Line The line number of the code completion point. + + @param Col The column number of the code completion point. + + @param ParentCI The running interpreter compiler instance that provides ASTContexts. + + @param CCResults [out] The completion results. + */ ---------------- vgvassilev wrote:
```suggestion /// Provides code completion results given a stem. /// /// \param InterpCI [in] The compiler instance that is used to trigger code completion /// \param Content [in] The string where code completion is triggered. /// \param Line [in] The line number of the code completion point. /// \param Col [in] The column number of the code completion point. /// \param ParentCI [in] The running interpreter compiler instance that provides ASTContexts. /// \param CCResults [out] The completion results. ``` 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