Respect "-fdiagnostics-absolute-paths" on emit include location
authorCharalampos Mitrodimas <charmitro@gmail.com>
Mon, 5 Jun 2023 17:43:33 +0000 (17:43 +0000)
committerChristopher Di Bella <cjdb@google.com>
Mon, 5 Jun 2023 18:07:18 +0000 (18:07 +0000)
commit91be60b34715bfe930dd1c56414c62a63cdaaa9c
tree153fc7673551974eab669657eff9e4ff11fd5404
parent798c5ba770d30520a7cd6f431068ade2bda5a9f1
Respect "-fdiagnostics-absolute-paths" on emit include location

This commit fixes "TextDiagnostic::emitIncludeLocation" when compiling
with "-fdiagnostics-absolute-paths" flag enabled by emitting the absolute
path of the included file.

Fixes #63026

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D151833
clang/lib/Frontend/TextDiagnostic.cpp
clang/test/Frontend/absolute-paths-import.h [new file with mode: 0644]
clang/test/Frontend/absolute-paths.c