llvm-project/clang/test/Preprocessor/Inputs
Volodymyr Sapsai 2f84361684 Fix -Wnonportable-include-path suppression for header maps with absolute paths.
In `DirectoryLookup::LookupFile` parameter `HasBeenMapped` doesn't cover
the case when clang finds a file through a header map but doesn't remap
the lookup filename because the target path is an absolute path. As a
result, -Wnonportable-include-path suppression for header maps
introduced in r301592 wasn't triggered.

Change parameter `HasBeenMapped` to `IsInHeaderMap` and use parameter
`MappedName` to track the filename remapping. This way we can handle
both relative and absolute paths in header maps, and account for their
specific properties, like filename remapping being a property preserved
across lookups in multiple directories.

rdar://problem/39516483

Reviewers: dexonsmith, bruno

Reviewed By: dexonsmith

Subscribers: jkorous, cfe-commits, ributzka

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

llvm-svn: 371655
2019-09-11 20:39:04 +00:00
..
TestFramework.framework
cycle [Preprocessor] Stop entering included files after hitting a fatal error. 2018-07-25 19:16:26 +00:00
headermap-rel Re-apply: Add python tool to dump and construct header maps 2018-06-21 21:45:24 +00:00
headermap-rel2 Re-apply: Add python tool to dump and construct header maps 2018-06-21 21:45:24 +00:00
include-file-and-dir Don't diagnose errors when a file matches an include component 2019-08-09 19:49:14 +00:00
include-header-missing-in-framework [Preprocessor] Fix crash emitting note with framework location for "file not found" error. 2019-05-27 19:15:30 +00:00
include-next-1 Improve the diagnostic for #include_next occurring in a file not found 2019-03-21 20:42:13 +00:00
include-next-2 Improve the diagnostic for #include_next occurring in a file not found 2019-03-21 20:42:13 +00:00
include-subdir Reland "[Clang][PP] Add the __FILE_NAME__ builtin macro" 2019-05-16 21:13:49 +00:00
microsoft-header-search
nonportable-hmaps Fix -Wnonportable-include-path suppression for header maps with absolute paths. 2019-09-11 20:39:04 +00:00