-
Notifications
You must be signed in to change notification settings - Fork 232
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
Maintenance: Using Google C++ Style Guide with Tabs. #7
Conversation
Google C++ Style Guide See: <https://google.github.io/styleguide/cppguide.html> Changes: - Use Tabs and a Tab Stop of 4 instead of 2 spaces. - Don't indent access specifiers. TODO: - Fix non-const references.
@anthwlock Example:
|
Ok, but use |
Ok, means Google Style I presume.
Yes, If I read the Google C++ Style Guide on Integer Types correctly, Using On the subject of integers. |
TODO: - Fix non-const references of FileRead and FileWrite.
As long the data fields don't contain integers bigger than 2^31 it doesn't matter. Some files contain 0xFFFFFFFF indicating the file is corrupt. When using signed integer you just have to check weither the input is -1. |
I just realised that you are right about |
The double indirection can't be helped, when using Google C++ Style. |
The Considering the Instead of doing: |
Changed other files to adjust to API changes in Atom.
Perhaps Btw thanks for you contribution(s) to this branch, I will look at it in the next days. |
OK. As you said yourself your changes dont affect functionality but only optic. But you have taken it to the extreme. I honor your engagement but to me it seems that only 50% of what you added/changed are worth merging. For example ...
// Atom.
class Atom {
... That said, I would like to merge the somewhat usefull stuff. For example...
Again, thank you for your commitment, but this is too much. |
Because Ponchio did this in the original, upstream Untrunc.
Notes:
Sometimes the CPreProcessor its unavoidable, like
I'll rewrite those with:
Yeah, this is just a convenience hack. I intend to remove them when I'm done.
Style. Comments should be more like sentences. The period indicates the end of the comment.
I prefer it. It makes the source more readable.
As a comment, it's unnecessary.
Basically, the first patch with Google Style. |
Google C++ Style Guide
See: https://google.github.io/styleguide/cppguide.html
Changes:
TODO: