-
Notifications
You must be signed in to change notification settings - Fork 32
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
Introduce clang-tidy #878
base: dev
Are you sure you want to change the base?
Introduce clang-tidy #878
Conversation
b647657
to
43ecf32
Compare
43ecf32
to
750e5b7
Compare
@@ -61,7 +61,7 @@ Result<std::string> Base64Decode(const std::string& input) | |||
|
|||
for (size_t i = 0; i < input.size(); i += 4) | |||
{ | |||
unsigned char enc[4]; | |||
char enc[4]; |
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.
@@ -36,10 +36,11 @@ class Engine | |||
|
|||
AuditResult(const AuditResult&) = delete; | |||
AuditResult(AuditResult&& other) noexcept | |||
: result(other.result) | |||
, payload(other.payload) |
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.
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 is unusual, not used anywhere else in this project.
This is C++-specific - member initialization.
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.
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 informational comment: putting commas in front of the initializer makes much easier to add new fields and reorder them in case of class definition changes.
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.
30874ce
to
033c331
Compare
The base branch was changed.
Description
Introduce clang-tidy to the project. Currently it only works on the src/modules/compliance directory.
This PR depends on #873, DO NOT MERGE YET
Checklist
dev
branch prior to this PR submission.dev
branch.