[PATCH] D154382: [ClangRepl] support code completion at a REPL

Fred Fu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 13 07:37:16 PDT 2023


capfredf added inline comments.


================
Comment at: clang/lib/Interpreter/Interpreter.cpp:304
+llvm::Expected<std::unique_ptr<Interpreter>>
+Interpreter::createForCodeCompletion(
+    IncrementalCompilerBuilder &CB, const CompilerInstance *ParentCI,
----------------
v.g.vassilev wrote:
> I still do not entirely understand why we can "just" ask the codecompletion infrastructure for the possible options at the current position. I know that's probably easier set than done but I'd like to entertain that idea for a while..
I'm a bit confused. Can you expand on the suggestion?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154382/new/

https://reviews.llvm.org/D154382



More information about the cfe-commits mailing list