]> granicus.if.org Git - clang/commit
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)
commit6e38ac04985f360b394f575a820b9966bc76b696
tree4ed791a4ef9fff9552c6c7d99976c590cffdad7a
parent7ac5283327129c6469396c4b3f0b4175737e3f7e
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361598 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/TextDiagnostic.cpp
test/Frontend/absolute-paths-windows.test [new file with mode: 0644]
test/Frontend/lit.local.cfg