[xcodegen] Clean up buildable folder checking a bit

Factor out the checking and consistently apply the
"all sources files must be covered" rule across
both Clang and Swift targets.
This commit is contained in:
Hamish Knight
2024-12-15 16:38:39 +00:00
parent 1d1b260c8f
commit 14aec1bd3d
2 changed files with 60 additions and 22 deletions

View File

@@ -38,6 +38,10 @@ public extension PathProtocol {
storage.lastComponent?.string ?? ""
}
var isEmpty: Bool {
storage.isEmpty
}
func appending(_ relPath: RelativePath) -> Self {
Self(storage.pushing(relPath.storage))
}