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 errors in development branch #5296

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

EZoni
Copy link
Member

@EZoni EZoni commented Sep 19, 2024

While reviewing #5285, I noticed that #4937 did not pass our 3D clang-tidy check, which is currently failing in development:

The RZ check was skipped due to the 3D one failing, so that might bring up issues too.

The clang-tidy errors fixed so far are:

  • /home/runner/work/WarpX/WarpX/Source/ablastr/fields/IntegratedGreenFunctionSolver.cpp:196:5: error: variable 'local_boxid' of type 'int' can be declared 'const' [misc-const-correctness,-warnings-as-errors]
  • /home/runner/work/WarpX/WarpX/Source/ablastr/fields/IntegratedGreenFunctionSolver.cpp:201:9: error: variable 'local_nodal_box' of type 'amrex::Box' (aka 'BoxND<3>') can be declared 'const' [misc-const-correctness,-warnings-as-errors]

Copy link
Member

@aeriforme aeriforme left a comment

Choose a reason for hiding this comment

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

Noted, thank you!
I confirm it works

Copy link
Member

@lucafedeli88 lucafedeli88 left a comment

Choose a reason for hiding this comment

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

Thanks, @EZoni !

@lucafedeli88 lucafedeli88 merged commit d85cc04 into ECP-WarpX:development Sep 19, 2024
37 checks passed
@EZoni EZoni deleted the fix_clang_tidy_3d branch September 19, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tests Tests and CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants