-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
some clang-tidy #309
base: master
Are you sure you want to change the base?
some clang-tidy #309
Conversation
Can avoid the lambdas by using operator==. Also converted some to for range loops where it made sense. Signed-off-by: Rosen Penev <[email protected]>
Found with modernize-min-max-use-initializer-list Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
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
found issue(s) with the introduced code (1/1)
@@ -85,7 +85,7 @@ Chunk::at_position(uint32_t pos, iterator itr) { | |||
|
|||
inline Chunk::iterator |
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.
Chunk
is not a class, namespace, or enumeration
@@ -85,7 +85,7 @@ Chunk::at_position(uint32_t pos, iterator itr) { | |||
|
|||
inline Chunk::iterator | |||
Chunk::find_address(void* ptr) { |
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.
Chunk
is not a class, namespace, or enumeration
Again these are not changes that materially improve the code, and in some places actually makes it more obtuse. E.g. expanding compact if/else statements to multiple lines and adding operators to Chunks when the explicit member function call is more descriptive. There are lots of places where effort to clean up the code would be greatly appreciated, but these changes are not the right ones. |
No description provided.