Skip to content

Comments

[cling] Ensure HeaderFileInfo exists during incremental parsing #21250

Open
devajithvs wants to merge 2 commits intoroot-project:masterfrom
devajithvs:fix-autocomplete-backup
Open

[cling] Ensure HeaderFileInfo exists during incremental parsing #21250
devajithvs wants to merge 2 commits intoroot-project:masterfrom
devajithvs:fix-autocomplete-backup

Conversation

@devajithvs
Copy link
Contributor

@devajithvs devajithvs commented Feb 11, 2026

When registering incremental inputs as virtual files, we need to ensure that the HeaderSearch is aware of the FileEntry.

This prevents assertions in HeaderSearch::LookupFile where it expects file info to exist.

This will help revert one of our LLVM patches that was added when upgrading to LLVM20.

TODO: Update LLVM tag after review and squash commits.

This Pull request:

Changes or fixes:

Checklist:

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

This PR fixes #

@devajithvs devajithvs self-assigned this Feb 11, 2026
@devajithvs devajithvs requested a review from hahnjo February 11, 2026 14:59
@devajithvs devajithvs force-pushed the fix-autocomplete-backup branch from d16ac58 to 4807d45 Compare February 11, 2026 15:04
@devajithvs devajithvs marked this pull request as draft February 11, 2026 17:00
@github-actions
Copy link

github-actions bot commented Feb 11, 2026

Test Results

    22 files      22 suites   3d 6h 59m 19s ⏱️
 3 798 tests  3 794 ✅ 0 💤 4 ❌
76 396 runs  76 392 ✅ 0 💤 4 ❌

For more details on these failures, see this check.

Results for commit c5c6d5b.

♻️ This comment has been updated with latest results.

@devajithvs devajithvs force-pushed the fix-autocomplete-backup branch 4 times, most recently from 0140bbd to acb7831 Compare February 17, 2026 14:24
@devajithvs
Copy link
Contributor Author

Upstreaming fixes: llvm/llvm-project#182044, llvm/llvm-project#182070

When registering incremental inputs as virtual files, we need to
ensure that the `HeaderSearch` is aware of the `FileEntry`.

This prevents assertions in `HeaderSearch::LookupFile` where it
expects file info to exist.

This will help revert one of our LLVM patches that was added when
upgrading to LLVM20.
@devajithvs devajithvs force-pushed the fix-autocomplete-backup branch from acb7831 to c5c6d5b Compare February 19, 2026 09:41
@devajithvs devajithvs changed the title [cling] Use direct FileID creation for IncrementalParsing [cling] Ensure HeaderFileInfo exists during incremental parsing Feb 19, 2026
@devajithvs devajithvs marked this pull request as ready for review February 20, 2026 10:34
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