This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Only emit default error/fatal diagnostices from included files.
ClosedPublic

Authored by hokein on May 14 2020, 12:27 AM.

Details

Summary

This would avoid adding too much noise when there is a "-Wall" in the
compile command.

Diff Detail

Event Timeline

hokein created this revision.May 14 2020, 12:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 14 2020, 12:27 AM
sammccall accepted this revision.May 14 2020, 1:13 AM

Thanks!

clang-tools-extra/clangd/Diagnostics.cpp
127

"especially" suggests there are other cases where we we report non-default errors, but I'm not sure there are.

Maybe just "Use default severity to avoid noise with -Werror".

This revision is now accepted and ready to land.May 14 2020, 1:13 AM
hokein updated this revision to Diff 263945.May 14 2020, 2:08 AM
hokein marked an inline comment as done.

Address comments.

This revision was automatically updated to reflect the committed changes.