-
Notifications
You must be signed in to change notification settings - Fork 97
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
apply updated code style #1196
base: master
Are you sure you want to change the base?
apply updated code style #1196
Conversation
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.
after squash, there will be another sha commit. .git-blame-ignore-revs
should be added after the merge of this MR
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.
Yes, it's added here so you can test it and make sure that git blame continues working
@@ -3,12 +3,12 @@ | |||
#include "common/smart_ptrs/intrusive_ptr.h" | |||
|
|||
#ifndef INCLUDED_FROM_KPHP_CORE | |||
#error "this file must be included only from runtime-core.h" | |||
#error "this file must be included only from runtime-core.h" |
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.
don't want to enable `IndentPPDirectives'?
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.
+1 for macro indentation
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: Empty |
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.
maybe we should keep it?
ReflowComments: true | ||
SortIncludes: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterTemplateKeyword: false |
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.
I'd keep it. IMHO
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.
Includes are sorted implicitly by setting base variant on LLVM, I suppose.
IncludeCategories: | ||
- Regex: '^<' | ||
Priority: 1 | ||
IndentCaseLabels: true |
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.
maybe we should keep it?
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.
Mb will we add the formatting script first, and then the new rules?
@@ -3,12 +3,12 @@ | |||
#include "common/smart_ptrs/intrusive_ptr.h" | |||
|
|||
#ifndef INCLUDED_FROM_KPHP_CORE | |||
#error "this file must be included only from runtime-core.h" | |||
#error "this file must be included only from runtime-core.h" |
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.
+1 for macro indentation
ReflowComments: true | ||
SortIncludes: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterTemplateKeyword: false |
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.
Includes are sorted implicitly by setting base variant on LLVM, I suppose.
No description provided.