Skip to content
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

Fix clang-tidy(-18) issues #564

Merged
merged 12 commits into from
Aug 12, 2024
Merged

Fix clang-tidy(-18) issues #564

merged 12 commits into from
Aug 12, 2024

Conversation

schaumb
Copy link
Contributor

@schaumb schaumb commented Jul 31, 2024

  • parent class function hides same member function
  • Replace CHAR_BITS and M_PI to C++ replacements
  • Remove void function returns
  • move rvalue references/perfect forward universal references
  • move type_traits to C++17 '_v' suffixes
  • include all includes to C++
  • Remove nested '?:' ternary operators
  • Remove implicit inlines
  • Make all enum base to uint8_t
  • Remove some unnecessary namespace prefix
  • Change enable_if to requires
  • std::ignore some argument and return values
  • header guard to canvas.h

@schaumb schaumb requested a review from simzer July 31, 2024 18:33
@schaumb schaumb marked this pull request as draft August 1, 2024 07:56
- Replace CHAR_BITS and M_PI to C++ replacements
- Remove void function returns
- move rvalue references / prefect forward universal references
- move type_traits to C++17 '_v' suffixes
- include all includes to c++
- Remove nested ? : ternary operators
- Remove implicit inlines
- Make all enum base to uint8_t
- Remove some unnecessary namespace prefix
- Change enable_if to requires
- std::ignore some argument
- header guard to canvas.h
@schaumb schaumb marked this pull request as ready for review August 1, 2024 16:08
# Conflicts:
#	src/base/geom/circle.cpp
#	src/base/geom/circle.h
#	src/base/geom/rect.cpp
#	src/base/geom/triangle.cpp
simzer
simzer previously approved these changes Aug 12, 2024
: srcOpt->geometry == Gen::ShapeType::line ? in3
: trgOpt->geometry == Gen::ShapeType::line ? out3
: inOut5;
const ::Anim::Easing *geomEasing{&inOut5};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if else

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The calng-tidy says that there are identical if-branches.

simzer
simzer previously approved these changes Aug 12, 2024
@schaumb schaumb merged commit 115668e into main Aug 12, 2024
1 check passed
@schaumb schaumb deleted the clang-tidy-fixes branch August 12, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants