-
Notifications
You must be signed in to change notification settings - Fork 6
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 current O3DE coding standards #5
Conversation
Signed-off-by: rgba16f <82187279+rgba16f@users.noreply.github.com>
✔️ Deploy Preview for compassionate-kare-0aea30 ready! 🔨 Explore the source changes: 98aa6b2 🔍 Inspect the deploy log: https://app.netlify.com/sites/compassionate-kare-0aea30/deploys/60c8e334327c3c0008c6e245 😎 Browse the preview: https://deploy-preview-5--compassionate-kare-0aea30.netlify.app |
* Note: Nested blocks are usually started by entering a new scope, i.e. whenever you would have used a brace, but there are other situations (see examples below). | ||
* Indent all lines of a block by the same amount (see "Make lines reasonably long" for advice on continued lines). | ||
|
||
**Uncrustify**: Will automatically format to these guidelines. |
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.
Are we requiring external developers to use Uncrustify?
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.
Clang-tidy is being used, since we use Clang on several platforms and it's embedded in Visual Studio so it formats code as you type.
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.
Just need to remove 11.9 as it doesn't apply on next pass.
Signed-off-by: rgba16f <82187279+rgba16f@users.noreply.github.com>
106eb46
to
98aa6b2
Compare
A couple of issues. The minimum clang version on any support platform 6.0.0(Linux) and not 5.0.0. |
A few notes:
In section #ifndef CRYINCLUDE_EDITOR_2DVIEWPORT_H
#define CRYINCLUDE_EDITOR_2DVIEWPORT_H
#pragma once others have it at the end of file: #ifndef AZCORE_DRILLER_H
#define AZCORE_DRILLER_H
// FILE CONTENTS HERE
#endif // AZCORE_DRILLER_H
#pragma once |
Signed-off-by: rgba16f 82187279+rgba16f@users.noreply.github.com