Commit Graph

3 Commits

Author SHA1 Message Date
Saleem Abdulrasool
34cbb3000c test: unixise some paths in diagnostics tests (NFCI)
This simplifies the test pattern.
2020-06-28 21:44:11 -07:00
Owen Voorhees
c4e67e29ed [Diagnostics] Add -diagnostic-style=(llvm|swift) to control printed output
This default formatting style remains the same "LLVM style". "Swift style"
is what was previously enabled via -enable-experimental-diagnostic-formatting
2020-05-20 19:34:15 -05:00
Owen Voorhees
f00953c62d [Diags-Experimental-Formatting] Fixes for printing diagnostics when #sourceLocation is used
- Always use the line number in the actual source file when extracting excerpts and adding highlights/fix-its
- Always use the display name when printing excerpt titles
- Don't print surrounding lines when an annotated line is in a virtual file

This reverts commit f919e047834eddf8863723b9db1fcb8d344d2006.
2020-05-12 18:40:20 -07:00