Skip to content

Commit 56617ac

Browse files
[ScanDependency] Fix dependency output json format
Remove a trailing common that makes the JSON output from `-scan-dependencies` to be invalide JSON format.
1 parent bfa356b commit 56617ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/DependencyScan/ScanDependencies.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ static void writeJSON(llvm::raw_ostream &out,
11111111
if (hasOverlayDependencies) {
11121112
writeDependencies(out, swiftTextualDeps->swift_overlay_module_dependencies,
11131113
"swiftOverlayDependencies", 5,
1114-
/*trailingComma=*/true);
1114+
/*trailingComma=*/false);
11151115
}
11161116
} else if (swiftPlaceholderDeps) {
11171117
out << "\"swiftPlaceholder\": {\n";

0 commit comments

Comments
 (0)