-
Notifications
You must be signed in to change notification settings - Fork 0
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 note about clang-format versions #16
Conversation
After struggling with this, just wanted to pass along this hard-earned information for others.
OK, not sure how to add two reviewers to github... only letting me do one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, some details about clang-format versions are spelled out in detail in the guidelines.md document already, as I ran into similar issues! The directives in our clang-format file are compatible with 16. @michael-okeefe could you have a look under "Editor Settings" there and then we can consolidate our observations in the readme?
Thanks, @tanaya-mankad ! Didn't actually know there was already discussion on this in the I think the main issue was I hadn't seen guidelines and had installed clang-format 18 and couldn't figure out why things weren't working for me until I realized that even if you specify the clang-format version in your .clang-format file, it matters what version of the clang-format engine is doing the formatting and checking the formatting on the CI -- apparently since those versions were different there was slight differences in formatting behavior which caused the CI to fail. I'm not sure if that extra information needs to be added to the guidelines file or not as, had I actually followed your instructions, I wouldn't have had an issue ;-) |
Let's move that critical info to the readme then! It's undoubtedly the right place for install dependencies. I'll make that change. |
Shall I delete this PR at this point? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you re-spell "you're" I'll merge this. ;)
Fix spelling mistake.
Done, thanks! |
After struggling with this, just wanted to pass along this hard-earned information for others.
Description
Updates README to hopefully save others pain in setting up clang-format for their projects.
Reviewer Checklist: