Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --describe-candidates #26383

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mppf
Copy link
Member

@mppf mppf commented Dec 10, 2024

In working on a Chapel program recently, I ran into a situation where I was having trouble seeing why a particular candidate didn't resolve for a call. Today, we describe the detailed reason for a call failure when printing the first candidate. But, the candidate I was expecting to match was a later candidate, and so the details weren't printed out. I was able to work around this issue and find the problem. However, it would have been easier if I had a way to ask the compiler to describe all of the candidates.

This PR adds a flag, --describe-candidates, that asks the compiler to print the detailed reason for a call failure when printing any candidate.

  • check if the name is good
  • should it print out a note, similar to what we have now for note: and 2 other candidates, use --print-all-candidates to see them
  • add to the chpl man page
  • full comm=none testing

---
Signed-off-by: Michael Ferguson <[email protected]>
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