Skip to content

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 #

@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
@github-actions
Copy link

github-actions bot commented Jul 15, 2025

Test Results

    21 files      21 suites   3d 7h 54m 42s ⏱️
 3 224 tests  3 224 ✅ 0 💤 0 ❌
65 977 runs  65 977 ✅ 0 💤 0 ❌

Results for commit 8e34dcb.

♻️ This comment has been updated with latest results.

Copy link
Member

@hahnjo hahnjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks mostly good to me! Some minor comments on the calling convention / error return semantics of CreateCI (and sorry for the delay in reviewing the PR)

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 force-pushed the CIFactoryAutocomplet branch from 5cb49d0 to 8e34dcb Compare August 4, 2025 09:00
Copy link
Member

@hahnjo hahnjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@devajithvs devajithvs merged commit 02dc816 into root-project:master Aug 5, 2025
26 checks passed
@devajithvs devajithvs deleted the CIFactoryAutocomplet branch August 5, 2025 06:55
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.

2 participants