-
Notifications
You must be signed in to change notification settings - Fork 6
Add .clang-format file #41
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
Conversation
Signed-off-by: Derek G Foster <derek.foster@intel.com>
|
Does this require clang-format installed in dev environment? |
No, it doesn't. It specifies the defaults to use if you run clang-format without explicit options. I've begun running clang-format on newly developed files (unit tests). We'll need to choose the right time to begin reformatting existing files. (Probably not before 23.07, especially if it makes wrenching changes to a file.) This particular file was copied from stratum. |
5abeel
left a comment
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.
LGTM
|
@ffoulkes I remember our conversation about clang format as a recommended for stratum codebase. Should we make it as part of some guideline? |
nupuruttarwar
left a comment
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.
LGTM
Might be good to do that (if you have the time, based on priority list) |
Sure, we can take this as part of documentation update. |
Yes, we should. As I see it, the process would be something along the lines of:
Basically, we want reformatting changes to be separate from content changes. A developer can:
If you want to take out some insurance, you can
The stash on top of the stack should merge fairly cleanly. |
No description provided.