Do not resolve directory junctions for `-fdiagnostics-absolute-paths` on Windows.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 24 May 2019 04:46:22 +0000 (04:46 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Fri, 24 May 2019 04:46:22 +0000 (04:46 +0000)
commit0de4e935bb591b8c9ee41a9acbb5cda02838d8a6
treec09ae9e3168beffad7148356958849241e8401ac
parent0ee23c958bbcf6955568d5287d1495f485426800
Do not resolve directory junctions for `-fdiagnostics-absolute-paths` on Windows.

If the source file path contains directory junctions, and we resolve them when
printing diagnostic messages, these paths look independent for an IDE.
For example, both Visual Studio and Visual Studio Code open separate editors
for such paths, which is not only inconvenient but might even result in losing
changes made in one of them.

Differential Revision: https://reviews.llvm.org/D59415

llvm-svn: 361598
clang/lib/Frontend/TextDiagnostic.cpp
clang/test/Frontend/absolute-paths-windows.test [new file with mode: 0644]
clang/test/Frontend/lit.local.cfg