[PATCH] D70527: [clang] Fix the canonicalization of paths in -fdiagnostics-absolute-paths

Karl-Johan Karlsson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 21 01:29:09 PST 2019


Ka-Ka created this revision.
Ka-Ka added reviewers: rsmith, hans, rnk, ikudrin.
Herald added a project: clang.

In the current implementation of clang the canonicalization of paths in
diagnostic messages (when using -fdiagnostics-absolute-paths) only works
if the symbolic link is in the directory part of the filename, not if
the file itself is a symbolic link to another file.

This patch adds support to canonicalize the complete path including the
file.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70527

Files:
  clang/include/clang/Basic/FileManager.h
  clang/lib/Basic/FileManager.cpp
  clang/lib/Frontend/TextDiagnostic.cpp
  clang/test/Frontend/absolute-paths-symlinks.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70527.230392.patch
Type: text/x-patch
Size: 4510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191121/8348cd13/attachment.bin>


More information about the cfe-commits mailing list