summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2019-09-11 20:39:04 +0000
committerVolodymyr Sapsai <vsapsai@apple.com>2019-09-11 20:39:04 +0000
commit2f843616849963e8df7a561ce5179ed29a767057 (patch)
treec07e811ffbee24c5f627c5f1aa7f8e6c99974b84 /lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py
parent1b385a180250dac9a3b8aa469a242454322e76bc (diff)
downloadbcm5719-llvm-2f843616849963e8df7a561ce5179ed29a767057.tar.gz
bcm5719-llvm-2f843616849963e8df7a561ce5179ed29a767057.zip
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud