-
Notifications
You must be signed in to change notification settings - Fork 45
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
Turn fixits into suggestions #4
Comments
That would be great 👍 |
Just checking, any bandwidth to add this in? |
Probably not for a few weeks I'm afraid |
I think I've found an easy-ish way to do this with the |
So, annoyingly, the One way to use the existing method would be to look for multi-line warning bodies where the second line is a But there's still a couple of issues to do with fixes spanning multiple lines. For example, a fix might also require including a header. It might not be possible to put a The other one being something like wrapping a statement in braces. The output of Sooo, a complete but complicated method might be:
Now I've thought this through and worked out how to construct the lookup map in a non-terrible way, I will have a stab at doing it this weekend. |
Rather than trying to work out if a comment is really a fixit, maybe try getting clang-tidy to fix everything, and then take the diff of that and add as a suggestion?
The text was updated successfully, but these errors were encountered: