Skip to content

Conversation

patrykstefanski
Copy link

This commit changes two things:

  • Allows the count-attributed pointer analysis see through CXXDefaultArgExpr for both pointer and count arguments.
  • Fixes the diagnostic location. Since CXXDefaultArgExpr has no source representation, we emit the diagnostic at the right parenthesis of the call expression.

rdar://156005108

(cherry picked from commit f5a8063)

This commit changes two things:
- Allows the count-attributed pointer analysis see through
  `CXXDefaultArgExpr` for both pointer and count arguments.
- Fixes the diagnostic location. Since `CXXDefaultArgExpr` has no source
  representation, we emit the diagnostic at the right parenthesis of the
  call expression.

rdar://156005108

(cherry picked from commit f5a8063)
@patrykstefanski
Copy link
Author

@swift-ci test llvm

@patrykstefanski
Copy link
Author

Unrelated tests are failing.

@patrykstefanski patrykstefanski merged commit b6c748b into swiftlang:stable/21.x Aug 27, 2025
0 of 2 checks passed
@patrykstefanski patrykstefanski deleted the eng/pstefanski/PR-156005108-21.x branch August 27, 2025 22:50
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