This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Add ClangdUnit diagnostics tests using annotated code.
ClosedPublic

Authored by sammccall on Dec 20 2017, 9:05 AM.

Details

Summary

This adds checks that our diagnostics emit correct ranges in a bunch of cases,
as promised in D41118.

The diagnostics-preamble test is also converted and extended to be a little more
precise.

diagnostics.test stays around as the smoke test for this feature.

Event Timeline

sammccall created this revision.Dec 20 2017, 9:05 AM
sammccall updated this revision to Diff 127843.Dec 21 2017, 1:26 AM

Tighten preprocessor test

ping... just realized this didn't go in

This revision is now accepted and ready to land.Jan 24 2018, 1:35 AM
This revision was automatically updated to reflect the committed changes.
clangd/Protocol.cpp