mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Dependency Scanning] Emit diagnostics from compilation instance initialization
This commit is contained in:
@@ -126,11 +126,13 @@ void swiftscan_dependency_info_dispose(swiftscan_dependency_info_t info) {
|
||||
}
|
||||
|
||||
void swiftscan_dependency_set_dispose(swiftscan_dependency_set_t *set) {
|
||||
for (size_t i = 0; i < set->count; ++i) {
|
||||
swiftscan_dependency_info_dispose(set->modules[i]);
|
||||
if (set) {
|
||||
for (size_t i = 0; i < set->count; ++i) {
|
||||
swiftscan_dependency_info_dispose(set->modules[i]);
|
||||
}
|
||||
delete[] set->modules;
|
||||
delete set;
|
||||
}
|
||||
delete[] set->modules;
|
||||
delete set;
|
||||
}
|
||||
|
||||
//=== Scanner Cache Operations --------------------------------------------===//
|
||||
@@ -753,11 +755,13 @@ void swiftscan_diagnostic_dispose(swiftscan_diagnostic_info_t diagnostic) {
|
||||
|
||||
void
|
||||
swiftscan_diagnostics_set_dispose(swiftscan_diagnostic_set_t* diagnostics){
|
||||
for (size_t i = 0; i < diagnostics->count; ++i) {
|
||||
swiftscan_diagnostic_dispose(diagnostics->diagnostics[i]);
|
||||
if (diagnostics) {
|
||||
for (size_t i = 0; i < diagnostics->count; ++i) {
|
||||
swiftscan_diagnostic_dispose(diagnostics->diagnostics[i]);
|
||||
}
|
||||
delete[] diagnostics->diagnostics;
|
||||
delete diagnostics;
|
||||
}
|
||||
delete[] diagnostics->diagnostics;
|
||||
delete diagnostics;
|
||||
}
|
||||
|
||||
//=== Source Location -----------------------------------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user