[SR-11320] Verify diagnostics mode should allow you to specify the column of a diagnostic #53721
Labels
compiler
The Swift compiler in itself
diagnostic verifier
Area → compiler → Frontend: The `DiagnosticVerifier` class
feature
A feature request or implementation
Frontend
Area → compiler: Frontend
Additional Detail from JIRA
md5: 02d1ee561742a233d1d549d810aa4043
Issue Description:
An expected-error, expected-warning, or expected-info comment should be able to specify a column number, perhaps using a syntax like:
// expected-error@:42 {{diagnostic message here}}
See e.g. #26544 for an example of a situation where this would be useful.
The compiler's -verify mode is implemented in lib/Frontend/DiagnosticVerifier.cpp. You'll need to parse the new information, store it, and later check it if it's been set. Make sure this feature is optional—we have a lot of tests already that don't use this, and we don't want to update all of them!
The text was updated successfully, but these errors were encountered: