[PATCH] D28095: [ELF] - Use information available from DW_AT_comp_dir attribute when doing error reporting.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 10:36:09 PST 2017


George Rimar via Phabricator <reviews at reviews.llvm.org> writes:

> grimar created this revision.
> grimar added reviewers: ruiu, rafael, evgeny777, davide.
> grimar added subscribers: llvm-commits, grimar.
>
> Imagine we call clang -g aaa/bbb.cpp. Current error reporting would
> print something like:
> error: aaa/bbb.cpp ❌ error text.
>
> But we are able to print full path including current working directory of a compilation command,
> like: /home/bar/some_path/aaa/bbb.cpp:1: text

That is quite verbose. Clang itself doesn't print the full directory:

$ clang -c t/t.c
t/t.c:1:1: error: unknown type name 'ouoe'


Cheers,
Rafael


More information about the llvm-commits mailing list