Skip to content

Conversation

@bnbarham
Copy link
Contributor

@bnbarham bnbarham commented Dec 6, 2025

A few docs weren't added to the index, re-run the generation and fix the test to actually run in order to catch future issues.

A few docs weren't added to the index, re-run the generation and fix the
test to actually run in order to catch future issues.
@bnbarham bnbarham requested review from hborla and xedin December 6, 2025 00:19
@bnbarham bnbarham requested a review from DougGregor as a code owner December 6, 2025 00:19
@bnbarham
Copy link
Contributor Author

bnbarham commented Dec 6, 2025

@swift-ci please test


let groupsFileName = "\(swiftIncludeDir)/AST/DiagnosticGroups.def"
let groupRegex = /GROUP\((?<name>[a-zA-Z]+), "(?<file>.+)"\)/
let groupRegex = /GROUP\((?<name>[a-zA-Z]+),[^,]+,"(?<file>.+)"\)/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format of each group line was completely changed a while back

exit(1)
}

func generateIndex() throws {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just moving all the computation that generates errors to before we write so that we don't do any partial writes


if '@SWIFT_BUILD_SWIFT_SYNTAX@' == 'TRUE':
config.available_features.add('swift_swift_parser')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @xedin for noticing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant