Skip to content

Commit

Permalink
Fix warns (#248)
Browse files Browse the repository at this point in the history
* bugprone-macro-parentheses

* Turn on the ci

* modernize-make-unique

* minor thing

* minor

* header stuff

* dont check amrex-hydro

* Revert "modernize-make-unique"

This reverts commit 1f9bddf.

* Fix quotes.

* Fix readability-qualified-auto.

* Fix readability-braces-around-statements.

* Fix modernize-use-override.

* Fix readability-redundant-string-init.

---------

Co-authored-by: Jon Rood <[email protected]>
  • Loading branch information
marchdf and jrood-nrel authored Sep 18, 2023
1 parent 8f61bc6 commit 15fc3be
Show file tree
Hide file tree
Showing 118 changed files with 442 additions and 372 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ jobs:
#set -eu -o pipefail
cmake --build . --parallel ${{env.NPROCS}} 2>&1 | tee -a clang-tidy-full-report.txt
egrep "warning:|error:" clang-tidy-full-report.txt \
| egrep -v "Submodules/amrex|Submodules/sundials" \
| egrep -v "Submodules/amrex|Submodules/sundials|Submodules/AMReX-Hydro" \
| egrep -v "ld: warning:" | sort | uniq \
| awk 'BEGIN{i=0}{print $0}{i++}END{print "Warnings: "i}' > clang-tidy-warnings.txt
- name: Full report
Expand All @@ -582,7 +582,7 @@ jobs:
echo "::add-matcher::.github/problem-matchers/gcc.json"
cat clang-tidy-warnings.txt
export return=$(tail -n 1 clang-tidy-warnings.txt | awk '{print $2}')
#exit ${return}
exit ${return}
Lint-codeql:
needs: Formatting
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/ChallengeProblem/EBUserDefined.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _EBUSERDEFINED_H_
#define _EBUSERDEFINED_H_
#ifndef _EBUSERDEFINED_H
#define _EBUSERDEFINED_H

using namespace amrex;

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/ChallengeProblem/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/ChallengeProblem/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/CounterFlow/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/CounterFlow/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/CounterFlowSpray/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/CounterFlowSpray/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/DiffBunsen2D/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/DiffBunsen2D/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/JetInCrossflow/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_FArrayBox.H>
#include <AMReX_Geometry.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/JetInCrossflow/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/NormalJet_OpenDomain/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/NormalJet_OpenDomain/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/PremBunsen2D/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/PremBunsen2D/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/PremBunsen3D/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/PremBunsen3D/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/SwirlFlowWallInteractions/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/SwirlFlowWallInteractions/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/TripleFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/TripleFlame/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/FlameSheetIons/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/FlameSheetIons/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/IonizedAirWave/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/IonizedAirWave/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/PremBunsen3DKuhl/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/PremBunsen3DKuhl/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_BackwardStepFlame/EBUserDefined.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _EBUSERDEFINED_H_
#define _EBUSERDEFINED_H_
#ifndef EBUSERDEFINED_H
#define EBUSERDEFINED_H

using namespace amrex;

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_BackwardStepFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_BackwardStepFlame/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_EnclosedFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_EnclosedFlame/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_EnclosedVortex/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_EnclosedVortex/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_FlowPastCylinder/EBUserDefined.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _EBUSERDEFINED_H_
#define _EBUSERDEFINED_H_
#ifndef EBUSERDEFINED_H
#define EBUSERDEFINED_H

using namespace amrex;

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_FlowPastCylinder/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_FlowPastCylinder/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_PipeFlow/EBUserDefined.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _EBUSERDEFINED_H_
#define _EBUSERDEFINED_H_
#ifndef EBUSERDEFINED_H
#define EBUSERDEFINED_H

using namespace amrex;

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_PipeFlow/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_PipeFlow/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EnclosedFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EnclosedFlame/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EnclosedInjection/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EnclosedInjection/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/FlameSheet/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/FlameSheet/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/HITDecay/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
Loading

0 comments on commit 15fc3be

Please sign in to comment.