Skip to content

🚨 Fix new warnings revealed by clang-tidy 18 #381

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

Merged
merged 17 commits into from
Jul 4, 2024

Conversation

burgholzer
Copy link
Member

@burgholzer burgholzer commented May 29, 2024

Description

This PR aims to fix all the new warnings that were introduced in clang-tidy versions 18, which have been enabled with the switch to the [email protected].

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

@burgholzer burgholzer self-assigned this May 29, 2024
Copy link

codecov bot commented May 29, 2024

Codecov Report

Attention: Patch coverage is 94.50437% with 107 lines in your changes missing coverage. Please review.

Project coverage is 92.6%. Comparing base (2b0b4c5) to head (16f744a).
Report is 53 commits behind head on main.

Files with missing lines Patch % Lines
src/PathSimulator.cpp 88.6% 32 Missing ⚠️
src/ShorFastSimulator.cpp 94.5% 15 Missing ⚠️
src/ShorSimulator.cpp 95.2% 13 Missing ⚠️
src/Simulator.cpp 93.2% 13 Missing ⚠️
src/CircuitSimulator.cpp 90.8% 12 Missing ⚠️
src/HybridSchrodingerFeynmanSimulator.cpp 97.6% 5 Missing ⚠️
include/HybridSchrodingerFeynmanSimulator.hpp 87.5% 4 Missing ⚠️
include/PathSimulator.hpp 95.4% 4 Missing ⚠️
include/Simulator.hpp 91.4% 4 Missing ⚠️
src/StochasticNoiseSimulator.cpp 96.0% 4 Missing ⚠️
... and 1 more
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #381     +/-   ##
=======================================
+ Coverage   92.5%   92.6%   +0.1%     
=======================================
  Files         37      37             
  Lines       2561    2726    +165     
  Branches     310     306      -4     
=======================================
+ Hits        2371    2527    +156     
- Misses       190     199      +9     
Flag Coverage Δ
cpp 94.6% <94.5%> (-0.1%) ⬇️
python 87.3% <ø> (ø)
Files with missing lines Coverage Δ
include/CircuitSimulator.hpp 100.0% <100.0%> (ø)
include/DeterministicNoiseSimulator.hpp 100.0% <100.0%> (ø)
include/ShorFastSimulator.hpp 100.0% <100.0%> (ø)
include/ShorSimulator.hpp 100.0% <100.0%> (ø)
include/StochasticNoiseSimulator.hpp 100.0% <100.0%> (ø)
include/UnitarySimulator.hpp 100.0% <100.0%> (ø)
src/DeterministicNoiseSimulator.cpp 100.0% <100.0%> (ø)
src/GroverSimulator.cpp 100.0% <100.0%> (ø)
src/UnitarySimulator.cpp 100.0% <100.0%> (ø)
include/GroverSimulator.hpp 96.5% <96.1%> (+0.1%) ⬆️
... and 10 more

@burgholzer burgholzer added c++ Anything related to C++ code code quality Anything related to code quality and code style. labels May 30, 2024
@burgholzer burgholzer added good first issue Good for newcomers help wanted Extra attention is needed labels Jun 20, 2024
@burgholzer burgholzer force-pushed the fix-clang-tidy-17-18-warnings branch from 0938303 to fa0802e Compare June 20, 2024 18:44
@burgholzer burgholzer force-pushed the fix-clang-tidy-17-18-warnings branch from 2ee2c35 to 20dec4f Compare June 21, 2024 08:56
Signed-off-by: burgholzer <[email protected]>
@burgholzer burgholzer force-pushed the fix-clang-tidy-17-18-warnings branch from 20dec4f to 671b50f Compare June 21, 2024 11:03
Signed-off-by: burgholzer <[email protected]>
adds an unnecessary dependency and is never truly used. best to leave it in the git history.

Signed-off-by: burgholzer <[email protected]>
Signed-off-by: burgholzer <[email protected]>
Signed-off-by: burgholzer <[email protected]>
Signed-off-by: burgholzer <[email protected]>
# Conflicts:
#	cmake/ExternalDependencies.cmake
Signed-off-by: burgholzer <[email protected]>
Signed-off-by: burgholzer <[email protected]>
Signed-off-by: burgholzer <[email protected]>
@burgholzer burgholzer merged commit 244f977 into main Jul 4, 2024
34 checks passed
@burgholzer burgholzer deleted the fix-clang-tidy-17-18-warnings branch July 4, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Anything related to C++ code code quality Anything related to code quality and code style. good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant