Skip to content

[cling] Use clang-repl-style code completion #19375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

devajithvs
Copy link
Contributor

This Pull request:

This patch eliminates the need to create a nested interpreter for code
completion.

In LLVM 19, some Sema internals became private:
See llvm/llvm-project@874f511

Without this, we would require an additional patch on top of Clang to
access Sema::CodeCompleter after upgrading to LLVM 20.

This will fix one of the failing test during upgrade in CppInterOp (autocomplete)

Changes or fixes:

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #

This patch tries to mirror the approach taken by clang-repl for
autocomplete, will enable auto-complete without the overhead of
a full nested interpreter
This patch eliminates the need to create a nested interpreter for code
completion.

In LLVM 19, some Sema internals became private:
See llvm/llvm-project@874f511

Without this, we would require an additional patch on top of Clang to
access `Sema::CodeCompleter` after upgrading to LLVM 20.
@devajithvs devajithvs requested a review from dpiparo as a code owner July 15, 2025 12:35
@devajithvs devajithvs self-assigned this Jul 15, 2025
@devajithvs devajithvs requested review from hahnjo and vgvassilev July 15, 2025 12:36
Copy link

Test Results

    20 files      20 suites   3d 7h 27m 23s ⏱️
 3 203 tests  3 202 ✅ 0 💤 1 ❌
62 462 runs  62 461 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 5cb49d0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant