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

Clang-tidy fixes for Common++ #1639

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft

Conversation

egecetin
Copy link
Collaborator

@egecetin egecetin commented Nov 7, 2024

Fix various clang-tidy warnings

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

Attention: Patch coverage is 88.23529% with 16 lines in your changes missing coverage. Please review.

Project coverage is 83.35%. Comparing base (573effc) to head (f7b4ad8).

Files with missing lines Patch % Lines
Common++/src/IpUtils.cpp 70.58% 3 Missing and 2 partials ⚠️
Common++/src/SystemUtils.cpp 73.68% 5 Missing ⚠️
Common++/src/IpAddress.cpp 93.54% 2 Missing ⚠️
Common++/src/MacAddress.cpp 66.66% 2 Missing ⚠️
Common++/src/GeneralUtils.cpp 80.00% 1 Missing ⚠️
Common++/src/OUILookup.cpp 85.71% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #1639   +/-   ##
=======================================
  Coverage   83.34%   83.35%           
=======================================
  Files         276      276           
  Lines       48086    48092    +6     
  Branches     9721     9707   -14     
=======================================
+ Hits        40078    40085    +7     
+ Misses       7116     7113    -3     
- Partials      892      894    +2     
Flag Coverage Δ
fedora40 75.39% <86.66%> (-0.02%) ⬇️
macos-13 80.86% <81.74%> (-0.01%) ⬇️
macos-14 80.86% <81.74%> (-0.01%) ⬇️
macos-15 80.83% <80.50%> (-0.01%) ⬇️
mingw32 70.91% <80.41%> (-0.01%) ⬇️
mingw64 70.88% <80.41%> (-0.01%) ⬇️
npcap 85.31% <92.00%> (-0.01%) ⬇️
rhel94 75.24% <86.66%> (-0.03%) ⬇️
ubuntu2004 58.78% <85.57%> (+0.02%) ⬆️
ubuntu2004-zstd 58.88% <85.57%> (+<0.01%) ⬆️
ubuntu2204 75.16% <86.66%> (+<0.01%) ⬆️
ubuntu2204-icpx 61.56% <72.95%> (+0.15%) ⬆️
ubuntu2404 75.41% <86.79%> (-0.03%) ⬇️
unittest 83.35% <88.23%> (+<0.01%) ⬆️
windows-2019 85.36% <92.00%> (+0.01%) ⬆️
windows-2022 85.38% <92.00%> (+0.01%) ⬆️
winpcap 85.34% <92.00%> (+0.02%) ⬆️
xdp 50.64% <31.42%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@seladb
Copy link
Owner

seladb commented Nov 8, 2024

@egecetin please see this comment: #1637 (comment)

@egecetin
Copy link
Collaborator Author

egecetin commented Nov 8, 2024

@seladb Actually it is related with #1638 not this one 🙂. This PR for fixing of issues pointed by clang-tidy

@seladb
Copy link
Owner

seladb commented Nov 8, 2024

@seladb Actually it is related with #1638 not this one 🙂. This PR for fixing of issues pointed by clang-tidy

Oops sorry, I commented on the wrong PR... 🤦‍♂️

@egecetin egecetin changed the title Clang-tidy fixes Clang-tidy fixes for Common++ Nov 9, 2024
@@ -21,4 +21,5 @@ BreakBeforeBraces: Custom
BraceWrapping:
SplitEmptyFunction: false
AfterCaseLabel: true
QualifierAlignment: Left
Copy link
Collaborator

Choose a reason for hiding this comment

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

RIP, const on the right... I found that easier to read because its consistent behavior with its usage in the middle...

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 21 changed files in this pull request and generated no suggestions.

Files not reviewed (18)
  • Common++/header/GeneralUtils.h: Language not supported
  • Common++/header/IpAddress.h: Language not supported
  • Common++/header/IpUtils.h: Language not supported
  • Common++/header/LRUList.h: Language not supported
  • Common++/header/Logger.h: Language not supported
  • Common++/header/MacAddress.h: Language not supported
  • Common++/header/OUILookup.h: Language not supported
  • Common++/header/PointerVector.h: Language not supported
  • Common++/header/SystemUtils.h: Language not supported
  • Common++/header/TablePrinter.h: Language not supported
  • Common++/src/GeneralUtils.cpp: Language not supported
  • Common++/src/IpAddress.cpp: Language not supported
  • Common++/src/IpUtils.cpp: Language not supported
  • Common++/src/Logger.cpp: Language not supported
  • Common++/src/MacAddress.cpp: Language not supported
  • Common++/src/OUILookup.cpp: Language not supported
  • Common++/src/SystemUtils.cpp: Language not supported
  • Common++/src/TablePrinter.cpp: Language not supported
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