Skip to content

Conversation

neonichu
Copy link
Collaborator

@neonichu neonichu commented Jun 4, 2025

Originally only one line was tracked here (the end line effectively), but we also have to track the start line separately for correct multi-line ranges.

Originally only one line was tracked here (the end line effectively), but we also have to track the start line separately for correct multi-line ranges.
@neonichu
Copy link
Collaborator Author

neonichu commented Jun 4, 2025

@swift-ci please test

}

mutating func foundMacroValueAssignment(_ macroName: String, conditions: [(param: String, pattern: String)], value: String, path: Path, line: Int, startColumn: Int, endColumn: Int, parser: MacroConfigFileParser) {
mutating func foundMacroValueAssignment(_ macroName: String, conditions: [(param: String, pattern: String)], value: String, path: Path, startLine: Int, endLine: Int, startColumn: Int, endColumn: Int, parser: MacroConfigFileParser) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could startLine: Int, endLine: Int, startColumn: Int, endColumn: Int be something like rhs: Range<SourceLocation>?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess yah, maybe in a future PR :)

@neonichu
Copy link
Collaborator Author

neonichu commented Jun 5, 2025

@swift-ci please test linux

@neonichu neonichu enabled auto-merge (squash) June 5, 2025 00:13
@neonichu neonichu merged commit b78e04a into main Jun 5, 2025
24 checks passed
@neonichu neonichu deleted the bbuegling/multiline-xcconfig-locations branch June 5, 2025 01:31
mirza-garibovic pushed a commit to mirza-garibovic/swift-build that referenced this pull request Jul 3, 2025
Originally only one line was tracked here (the end line effectively), but we also have to track the start line separately for correct multi-line ranges.

(cherry picked from commit b78e04a)
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.

2 participants