C++: Return getSafePathString instead of getPathString
For methods returning includes in CompilationContext return a dot instead of an empty string for empty paths.
RELNOTES:none
@@ -144,7 +144,7 @@ public final class CcCompilationContext implements CcCompilationContextApi {
NestedSetBuilder.wrap(
Order.STABLE_ORDER,
getSystemIncludeDirs().stream()
- .map(PathFragment::getPathString)
+ .map(PathFragment::getSafePathString)
.collect(ImmutableList.toImmutableList())));
}
@@ -155,7 +155,7 @@ public final class CcCompilationContext implements CcCompilationContextApi {
NestedSetBuilder.wrap(
Order.STABLE_ORDER,
getIncludeDirs().stream()
- .map(PathFragment::getPathString)
+ .map(PathFragment::getSafePathString)
.collect(ImmutableList.toImmutableList())));
}
@@ -166,7 +166,7 @@ public final class CcCompilationContext implements CcCompilationContextApi {
NestedSetBuilder.wrap(
Order.STABLE_ORDER,
getQuoteIncludeDirs().stream()
- .map(PathFragment::getPathString)
+ .map(PathFragment::getSafePathString)
.collect(ImmutableList.toImmutableList())));
}
