This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Enforce strict unused includes by default
ClosedPublic

Authored by kadircet on Jun 12 2023, 1:49 AM.

Diff Detail

Event Timeline

kadircet created this revision.Jun 12 2023, 1:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2023, 1:49 AM
kadircet requested review of this revision.Jun 12 2023, 1:49 AM
hokein accepted this revision.Jun 12 2023, 2:38 AM
hokein added inline comments.
clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
9

nit: this spelling is incorrect, looks like a bug in the tooling spelling logic.

This revision is now accepted and ready to land.Jun 12 2023, 2:38 AM
This revision was landed with ongoing or failed builds.Jun 12 2023, 2:48 AM
This revision was automatically updated to reflect the committed changes.
kadircet marked an inline comment as done.
cjdb added a subscriber: cjdb.Jun 26 2023, 10:07 AM

This patch seems to have broken clangd for a project of mine. Most of my headers are now flagged as not being directly used even though they're the root header for the symbol.

This patch seems to have broken clangd for a project of mine. Most of my headers are now flagged as not being directly used even though they're the root header for the symbol.

replied on https://github.com/clangd/clangd/issues/1683