-
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
Import clang-format 17 settings; style document. #8
Conversation
In the absence of a standard formatting tool, use the following clang-format guidelines to organize your code. | ||
|
||
Prefer spaces to tab characters when indenting (set your text editor to replace tabs). | ||
|
||
The following clang-format list supports all (CPP-related) tags available in Clang 17, as listed in [https://clang.llvm.org/docs/ClangFormatStyleOptions.html](https://clang.llvm.org/docs/ClangFormatStyleOptions.html) |
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.
This seems too open ended. We use the atheneum clang-format. Period. IDE's should be configured to apply formatting when a file is saved and/or we should have the CI check that formatting is applied appropriately.
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.
Yeah, good point - we need the kind of CI script that E+ runs, which fails if the formatting is wrong. I'll work on that.
NRELSolarDecathalon (vs. NrelSolarDecathalon) | ||
``` | ||
|
||
## Variable names |
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.
Should we include references / summary of the book chapter you shared?
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.
Yup, definitely. This style document is an initial import only. There are lot of things to add, but I'm trying break up PRs into smaller chunks, maybe?
.clang-format
Outdated
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.
How does this compare to what is currently in Btwxt?
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.
It's actually taking the btwxt one and adding the newer values captured in clang-format 17 (btwxt was only on 10).
Description
Replace the content in this section with:
Author Progress Checklist:
Reviewer Checklist: