projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0780811
)
[lldb] Fix PathMappingListTest for the Optional interface change
author
Pavel Labath
<pavel@labath.sk>
Thu, 24 Nov 2022 10:10:26 +0000
(11:10 +0100)
committer
Pavel Labath
<pavel@labath.sk>
Thu, 24 Nov 2022 10:11:05 +0000
(11:11 +0100)
lldb/unittests/Target/PathMappingListTest.cpp
patch
|
blob
|
history
diff --git
a/lldb/unittests/Target/PathMappingListTest.cpp
b/lldb/unittests/Target/PathMappingListTest.cpp
index
cf2bc18
..
29d8378
100644
(file)
--- a/
lldb/unittests/Target/PathMappingListTest.cpp
+++ b/
lldb/unittests/Target/PathMappingListTest.cpp
@@
-40,7
+40,8
@@
static void TestPathMappings(const PathMappingList &map,
map.RemapPath(ConstString(match.original.GetPath()), actual_remapped));
EXPECT_EQ(FileSpec(actual_remapped.GetStringRef()), match.remapped);
FileSpec unmapped_spec;
- EXPECT_TRUE(map.ReverseRemapPath(match.remapped, unmapped_spec).hasValue());
+ EXPECT_TRUE(
+ map.ReverseRemapPath(match.remapped, unmapped_spec).has_value());
std::string unmapped_path = unmapped_spec.GetPath();
EXPECT_EQ(unmapped_path, orig_normalized);
}