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(system_monitor): fix bugprone-exception-escape #9781

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kobayu858
Copy link
Contributor

Description

This is a fix based on clang-tidy bugprone-exception-escape error.

/home/emb4/autoware/autoware/src/universe/autoware.universe/system/system_monitor/reader/hdd_reader/hdd_reader.cpp:656:5: error: an exception may be thrown in function 'main' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors]
int main(int argc, char ** argv)
    ^
/home/emb4/autoware/autoware/src/universe/autoware.universe/system/system_monitor/reader/msr_reader/msr_reader.cpp:213:5: error: an exception may be thrown in function 'main' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors]
int main(int argc, char ** argv)
    ^

Related links

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Signed-off-by: kobayu858 <[email protected]>
@github-actions github-actions bot added the component:system System design and integration. (auto-assigned) label Dec 25, 2024
Copy link

github-actions bot commented Dec 25, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@kobayu858 kobayu858 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 25, 2024
@kobayu858 kobayu858 requested a review from veqcc December 25, 2024 06:12
Copy link

codecov bot commented Dec 25, 2024

Codecov Report

Attention: Patch coverage is 0% with 58 lines in your changes missing coverage. Please review.

Project coverage is 29.66%. Comparing base (b764c57) to head (90a1bb3).
Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
...em/system_monitor/reader/msr_reader/msr_reader.cpp 0.00% 37 Missing ⚠️
...em/system_monitor/reader/hdd_reader/hdd_reader.cpp 0.00% 21 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9781      +/-   ##
==========================================
- Coverage   29.68%   29.66%   -0.03%     
==========================================
  Files        1450     1450              
  Lines      108833   108850      +17     
  Branches    42740    42743       +3     
==========================================
- Hits        32305    32285      -20     
- Misses      73357    73392      +35     
- Partials     3171     3173       +2     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 29.67% <ø> (-0.01%) ⬇️ Carriedforward from d8068bc

*This pull request uses carry forward flags. Click here to find out more.

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

Signed-off-by: kobayu858 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:system System design and integration. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
Status: To Triage
Development

Successfully merging this pull request may close these issues.

1 participant