This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Move diagnostics from modules to the main source file
Needs ReviewPublic

Authored by DmitryPolukhin on Aug 22 2023, 8:20 AM.

Details

Summary

After https://reviews.llvm.org/D85753 these diagnostics silently dropped
so the user may not have an idea what is wrong. This diff moves
diagnostics to the start of the main file same as it happens with
errors in the command line. Also added prefix give to make it clear that the
location is not original.

Test Plan: check-clangd

Diff Detail

Event Timeline

DmitryPolukhin created this revision.Aug 22 2023, 8:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2023, 8:20 AM
DmitryPolukhin requested review of this revision.Aug 22 2023, 8:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2023, 8:20 AM
DmitryPolukhin retitled this revision from [clangd] Move diagnostics from modules to main sources file to [clangd] Move diagnostics from modules to the main source file.Aug 22 2023, 8:31 AM
nridge added a subscriber: nridge.Aug 26 2023, 6:13 PM

Friendly ping, any thoughts about this diff?