diff options
author | Eric Christopher <echristo@gmail.com> | 2018-09-20 17:21:56 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2018-09-20 17:21:56 +0000 |
commit | 918b47fd4b03595eb1e0f98b0c760d6a05f3467b (patch) | |
tree | ea07d276e01e91d90e9071581c6a2ca23e495d2e /llvm/lib/Target/X86/X86ISelLowering.cpp | |
parent | 0ed4666d857f0b02a972435e000ae3c587d58ccf (diff) | |
download | bcm5719-llvm-918b47fd4b03595eb1e0f98b0c760d6a05f3467b.tar.gz bcm5719-llvm-918b47fd4b03595eb1e0f98b0c760d6a05f3467b.zip |
r342177 introduced a hint in cases where an #included file is not found. It tries to find a suggestion by removing leading or trailing non-alphanumeric characters and checking if a matching file exists, then it reports an error like:
include-likely-typo.c:3:10: error: '<empty_file_to_include.h>' file not found, did you mean 'empty_file_to_include.h'?
^~~~~~~~~~~~~~~~~~~~~~~~~~~
"empty_file_to_include.h"
1 error generated.
However, if a hint is not found, the error message will show only the trimmed name we use to look for a hint, so:
will result in:
include-leading-nonalpha-no-suggest.c:3:10: fatal error: 'non_existing_file_to_include.h' file not found
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
where the name reported after "fatal error:" doesn't match what the user wrote.
Patch by Jorge Gorbe!
Differential Revision: https://reviews.llvm.org/D52280
This change reports the original file name instead of the trimmed one when a suggestion is not found.
llvm-svn: 342667
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions