Improve the diagnostic for #include_next occurring in a file not found
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Mar 2019 20:42:13 +0000 (20:42 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 21 Mar 2019 20:42:13 +0000 (20:42 +0000)
commit6d69fec64516de1e64882aa4452f544c7b890357
tree15f067873cb581bcf76fb53fbe83586479ab60b5
parent74f0e2cc39308b992510b32d0aab25afc3572cd7
Improve the diagnostic for #include_next occurring in a file not found
in the include path.

Instead of making the incorrect claim that the included file has an
absolute path, describe the actual problem: the including file was found
either by absolute path, or relative to such a file, or relative to the
primary source file.

llvm-svn: 356712
clang/include/clang/Basic/DiagnosticLexKinds.td
clang/lib/Lex/PPDirectives.cpp
clang/test/Preprocessor/Inputs/include-next-1/bar.h [new file with mode: 0644]
clang/test/Preprocessor/Inputs/include-next-1/foo.h [new file with mode: 0644]
clang/test/Preprocessor/Inputs/include-next-2/bar.h [new file with mode: 0644]
clang/test/Preprocessor/include-next.c [new file with mode: 0644]