Skip to content

Commit

Permalink
#341: Update old header guards
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed Jun 6, 2024
1 parent c6ad452 commit cffcbc0
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/checkpoint/detector.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ using is_detected_convertible = std::is_convertible<detected_t<Op, Args...>, T>;

} // end detection

#endif /* INCLUDED_CHECKPOINT_DETECTOR_H */
#endif /*INCLUDED_CHECKPOINT_DETECTOR_H*/
7 changes: 4 additions & 3 deletions tests/unit/test_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
// *****************************************************************************
//@HEADER
*/
#ifndef TEST_COMMONS_H
#define TEST_COMMONS_H

#if !defined INCLUDED_UNIT_TEST_COMMONS_H
#define INCLUDED_UNIT_TEST_COMMONS_H

#include "test_harness.h"

Expand Down Expand Up @@ -179,4 +180,4 @@ std::unique_ptr<T> serializeAny(
}
} //end namespace

#endif // TEST_COMMONS_H
#endif /*INCLUDED_UNIT_TEST_COMMONS_H*/
6 changes: 3 additions & 3 deletions tests/unit/test_harness.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
//@HEADER
*/

#if !defined INCLUDED_CHECKPOINT_TEST_HARNESS
#define INCLUDED_CHECKPOINT_TEST_HARNESS
#if !defined INCLUDED_UNIT_TEST_HARNESS_H
#define INCLUDED_UNIT_TEST_HARNESS_H

#include <gtest/gtest.h>

Expand Down Expand Up @@ -89,4 +89,4 @@ using TestHarness = TestHarnessAny<testing::Test>;

}}} // end namespace checkpoint::tests::unit

#endif /*INCLUDED_CHECKPOINT_TEST_HARNESS*/
#endif /*INCLUDED_UNIT_TEST_HARNESS_H*/
7 changes: 4 additions & 3 deletions tests/unit/test_kokkos_0d_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
// *****************************************************************************
//@HEADER
*/
#ifndef TEST_KOKKOS_0D_COMMONS_H
#define TEST_KOKKOS_0D_COMMONS_H

#if !defined INCLUDED_UNIT_TEST_KOKKOS_0D_COMMONS_H
#define INCLUDED_UNIT_TEST_KOKKOS_0D_COMMONS_H

#include "test_commons.h"

Expand Down Expand Up @@ -76,4 +77,4 @@ using Test0DTypes = testing::Types<

#endif

#endif // TEST_KOKKOS_0D_COMMONS_H
#endif /*INCLUDED_UNIT_TEST_KOKKOS_0D_COMMONS_H*/
7 changes: 4 additions & 3 deletions tests/unit/test_kokkos_1d_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
// *****************************************************************************
//@HEADER
*/
#ifndef TEST_KOKKOS_1D_COMMONS_H
#define TEST_KOKKOS_1D_COMMONS_H

#if !defined INCLUDED_UNIT_TEST_KOKKOS_1D_COMMONS_H
#define INCLUDED_UNIT_TEST_KOKKOS_1D_COMMONS_H

#include "test_commons.h"

Expand Down Expand Up @@ -185,4 +186,4 @@ using DynRankViewTestTypes = testing::Types<

#endif

#endif // TEST_KOKKOS_1D_COMMONS_H
#endif /*INCLUDED_UNIT_TEST_KOKKOS_1D_COMMONS_H*/
7 changes: 4 additions & 3 deletions tests/unit/test_kokkos_2d_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
// *****************************************************************************
//@HEADER
*/
#ifndef TEST_KOKKOS_2D_COMMONS_H
#define TEST_KOKKOS_2D_COMMONS_H

#if !defined INCLUDED_UNIT_TEST_KOKKOS_2D_COMMONS_H
#define INCLUDED_UNIT_TEST_KOKKOS_2D_COMMONS_H

#include "test_commons.h"

Expand Down Expand Up @@ -154,4 +155,4 @@ using Test2DConstTypesStride =

#endif

#endif // TEST_KOKKOS_2D_COMMONS_H
#endif /*INCLUDED_UNIT_TEST_KOKKOS_2D_COMMONS_H*/
7 changes: 4 additions & 3 deletions tests/unit/test_kokkos_3d_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
// *****************************************************************************
//@HEADER
*/
#ifndef TEST_KOKKOS_3D_COMMONS_H
#define TEST_KOKKOS_3D_COMMONS_H

#if !defined INCLUDED_UNIT_TEST_KOKKOS_3D_COMMONS_H
#define INCLUDED_UNIT_TEST_KOKKOS_3D_COMMONS_H

#include "test_commons.h"

Expand Down Expand Up @@ -191,4 +192,4 @@ TYPED_TEST_P(KokkosViewTest3D, test_3d_any) {
}
}

#endif // TEST_KOKKOS_3D_COMMONS_H
#endif /*INCLUDED_UNIT_TEST_KOKKOS_3D_COMMONS_H*/
7 changes: 4 additions & 3 deletions tests/unit/test_kokkos_integration_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
// *****************************************************************************
//@HEADER
*/
#ifndef TEST_KOKKOS_INTEGRATION_COMMONS_H
#define TEST_KOKKOS_INTEGRATION_COMMONS_H

#if !defined INCLUDED_UNIT_TEST_KOKKOS_INTEGRATION_COMMONS_H
#define INCLUDED_UNIT_TEST_KOKKOS_INTEGRATION_COMMONS_H

#include "test_harness.h"
#include "test_commons.h"
Expand Down Expand Up @@ -272,4 +273,4 @@ struct Data : BaseData {

struct KokkosBaseTest : virtual testing::Test { };

#endif // TEST_KOKKOS_INTEGRATION_COMMONS_H
#endif /*INCLUDED_UNIT_TEST_KOKKOS_INTEGRATION_COMMONS_H*/
7 changes: 4 additions & 3 deletions tests/unit/tests_mpi/mpi-init.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
// *****************************************************************************
//@HEADER
*/
#ifndef MPIINIT_H
#define MPIINIT_H

#if !defined INCLUDED_UNIT_TESTS_MPI_MPI_INIT_H
#define INCLUDED_UNIT_TESTS_MPI_MPI_INIT_H

#include <gtest/gtest.h>
#include <test_harness.h>
Expand Down Expand Up @@ -94,4 +95,4 @@ class MPIEnvironment : public ::testing::Environment

};

#endif // MPIINIT_H
#endif /*INCLUDED_UNIT_TESTS_MPI_MPI_INIT_H*/
7 changes: 4 additions & 3 deletions tests/unit/tests_mpi/test_commons_mpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
// *****************************************************************************
//@HEADER
*/
#ifndef TEST_COMMONS_MPI_H
#define TEST_COMMONS_MPI_H

#if !defined INCLUDED_UNIT_TESTS_MPI_TEST_COMMONS_MPI_H
#define INCLUDED_UNIT_TESTS_MPI_TEST_COMMONS_MPI_H

#include "test_commons.h"
#include "test_kokkos_0d_commons.h"
Expand Down Expand Up @@ -88,4 +89,4 @@ void serializeAnyMPI(T& view, std::function<void(T const&,T const&)> compare) {
}
} // end namespace

#endif // TEST_COMMONS_MPI_H
#endif /*INCLUDED_UNIT_TESTS_MPI_TEST_COMMONS_MPI_H*/

0 comments on commit cffcbc0

Please sign in to comment.