[all-commits] [llvm/llvm-project] e8efac: [clang] Fix the canonicalization of paths in -fdia...

karka228 via All-commits all-commits at lists.llvm.org
Fri Dec 20 00:25:03 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e8efac4b15303932581c128dc3976f4359388338
      https://github.com/llvm/llvm-project/commit/e8efac4b15303932581c128dc3976f4359388338
  Author: Karl-Johan Karlsson <karl-johan.karlsson at ericsson.com>
  Date:   2019-12-20 (Fri, 20 Dec 2019)

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

  Log Message:
  -----------
  [clang] Fix the canonicalization of paths in -fdiagnostics-absolute-paths

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.

Reviewers: rsmith, hans, rnk, ikudrin

Reviewed By: rnk

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




More information about the All-commits mailing list