Skip to content

Commit

Permalink
Use pragma once everywher
Browse files Browse the repository at this point in the history
  • Loading branch information
alkino committed Nov 25, 2022
1 parent 882f89f commit cde6909
Show file tree
Hide file tree
Showing 41 changed files with 41 additions and 165 deletions.
6 changes: 1 addition & 5 deletions include/highfive/H5Attribute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5ATTRIBUTE_HPP
#define H5ATTRIBUTE_HPP
#pragma once

#include <vector>

Expand Down Expand Up @@ -101,6 +100,3 @@ class Attribute: public Object, public PathTraits<Attribute> {
};

} // namespace HighFive


#endif // H5ATTRIBUTE_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5DataSet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5DATASET_HPP
#define H5DATASET_HPP
#pragma once

#include <vector>

Expand Down Expand Up @@ -114,5 +113,3 @@ class DataSet: public Object,
};

} // namespace HighFive

#endif // H5DATASET_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5DataSpace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5DATASPACE_HPP
#define H5DATASPACE_HPP
#pragma once

#include <vector>
#include <array>
Expand Down Expand Up @@ -117,5 +116,3 @@ class DataSpace: public Object {

// We include bits right away since DataSpace is user-constructible
#include "bits/H5Dataspace_misc.hpp"

#endif // H5DATASPACE_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5DataType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5DATATYPE_HPP
#define H5DATATYPE_HPP
#pragma once

#include <type_traits>
#include <vector>
Expand Down Expand Up @@ -411,5 +410,3 @@ class FixedLenStringArray {
}

#include "bits/H5DataType_misc.hpp"

#endif // H5DATATYPE_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5Easy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
/// - xtensor objects
/// - OpenCV objects

#ifndef H5EASY_HPP
#define H5EASY_HPP
#pragma once

#include <string>
#include <vector>
Expand Down Expand Up @@ -399,5 +398,3 @@ inline T loadAttribute(const File& file, const std::string& path, const std::str
#include "h5easy_bits/H5Easy_scalar.hpp"
#include "h5easy_bits/H5Easy_vector.hpp"
#include "h5easy_bits/H5Easy_xtensor.hpp"

#endif // H5EASY_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5Exception.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5EXCEPTION_HPP
#define H5EXCEPTION_HPP
#pragma once

#include <memory>
#include <stdexcept>
Expand Down Expand Up @@ -163,5 +162,3 @@ class ReferenceException: public Exception {
} // namespace HighFive

#include "bits/H5Exception_misc.hpp"

#endif // H5EXCEPTION_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5File.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5FILE_HPP
#define H5FILE_HPP
#pragma once

#include <string>

Expand Down Expand Up @@ -126,5 +125,3 @@ class File: public Object, public NodeTraits<File>, public AnnotateTraits<File>
#include "bits/H5File_misc.hpp"
#include "bits/H5Node_traits_misc.hpp"
#include "bits/H5Path_traits_misc.hpp"

#endif // H5FILE_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5FileDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5FILEDRIVER_HPP
#define H5FILEDRIVER_HPP
#pragma once

#include "H5PropertyList.hpp"
#include "bits/H5_definitions.hpp"
Expand Down Expand Up @@ -36,5 +35,3 @@ class H5_DEPRECATED("Add MPIOFileAccess directly to FileAccessProps") MPIOFileDr
} // namespace HighFive

#include "bits/H5FileDriver_misc.hpp"

#endif // H5FILEDRIVER_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5Group.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef HIGHFIVE_H5GROUP_HPP
#define HIGHFIVE_H5GROUP_HPP
#pragma once

#include <H5Gpublic.h>

Expand Down Expand Up @@ -63,5 +62,3 @@ inline std::pair<unsigned int, unsigned int> Group::getEstimatedLinkInfo() const
}

} // namespace HighFive

#endif // HIGHFIVE_H5GROUP_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5Object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5OBJECT_HPP
#define H5OBJECT_HPP
#pragma once

#include <ctime>

Expand Down Expand Up @@ -129,5 +128,3 @@ class ObjectInfo {
} // namespace HighFive

#include "bits/H5Object_misc.hpp"

#endif // H5OBJECT_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5PropertyList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5PROPERTY_LIST_HPP
#define H5PROPERTY_LIST_HPP
#pragma once

#include <vector>

Expand Down Expand Up @@ -502,5 +501,3 @@ class UseCollectiveIO {
} // namespace HighFive

#include "bits/H5PropertyList_misc.hpp"

#endif // H5PROPERTY_LIST_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5Reference.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
*
*/

#ifndef H5REFERENCE_HPP
#define H5REFERENCE_HPP
#pragma once

#include <string>
#include <vector>
Expand Down Expand Up @@ -80,5 +79,3 @@ class Reference {
} // namespace HighFive

#include "bits/H5Reference_misc.hpp"

#endif // H5REFERENCE_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5Selection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5SELECTION_HPP
#define H5SELECTION_HPP
#pragma once

#include "H5DataSet.hpp"
#include "H5DataSpace.hpp"
Expand Down Expand Up @@ -59,5 +58,3 @@ class Selection: public SliceTraits<Selection> {
};

} // namespace HighFive

#endif // H5SELECTION_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5Utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
*
*/

#ifndef H5UTILITY_HPP
#define H5UTILITY_HPP
#pragma once

#include <H5Epublic.h>

Expand Down Expand Up @@ -36,5 +35,3 @@ class SilenceHDF5 {
};

} // namespace HighFive

#endif // H5UTILITY_HPP
5 changes: 1 addition & 4 deletions include/highfive/H5Version.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5VERSION_HPP
#define H5VERSION_HPP
#pragma once

#define HIGHFIVE_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
#define HIGHFIVE_VERSION_MINOR @PROJECT_VERSION_MINOR@
#define HIGHFIVE_VERSION_PATCH @PROJECT_VERSION_PATCH@
#define HIGHFIVE_VERSION @PROJECT_VERSION@

#endif // H5VERSION_HPP
6 changes: 1 addition & 5 deletions include/highfive/bits/H5Annotate_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5ANNOTATE_TRAITS_HPP
#define H5ANNOTATE_TRAITS_HPP
#pragma once

#include <string>

Expand Down Expand Up @@ -80,6 +79,3 @@ class AnnotateTraits {
using derivate_type = Derivate;
};
} // namespace HighFive


#endif // H5ANNOTATE_TRAITS_HPP
5 changes: 1 addition & 4 deletions include/highfive/bits/H5Annotate_traits_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5ANNOTATE_TRAITS_MISC_HPP
#define H5ANNOTATE_TRAITS_MISC_HPP
#pragma once

#include <string>
#include <vector>
Expand Down Expand Up @@ -117,5 +116,3 @@ inline bool AnnotateTraits<Derivate>::hasAttribute(const std::string& attr_name)
}

} // namespace HighFive

#endif // H5ANNOTATE_TRAITS_MISC_HPP
5 changes: 1 addition & 4 deletions include/highfive/bits/H5Attribute_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5ATTRIBUTE_MISC_HPP
#define H5ATTRIBUTE_MISC_HPP
#pragma once

#include <algorithm>
#include <functional>
Expand Down Expand Up @@ -128,5 +127,3 @@ inline void Attribute::write_raw(const T* buffer, const DataType& dtype) {
}

} // namespace HighFive

#endif // H5ATTRIBUTE_MISC_HPP
5 changes: 1 addition & 4 deletions include/highfive/bits/H5DataSet_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5DATASET_MISC_HPP
#define H5DATASET_MISC_HPP
#pragma once

#include <algorithm>
#include <functional>
Expand Down Expand Up @@ -66,5 +65,3 @@ inline void DataSet::resize(const std::vector<size_t>& dims) {
}

} // namespace HighFive

#endif // H5DATASET_MISC_HPP
6 changes: 1 addition & 5 deletions include/highfive/bits/H5DataType_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5DATATYPE_MISC_HPP
#define H5DATATYPE_MISC_HPP
#pragma once

#include <string>
#include <complex>
Expand Down Expand Up @@ -494,6 +493,3 @@ inline DataType create_and_check_datatype() {
}

} // namespace HighFive


#endif // H5DATATYPE_MISC_HPP
5 changes: 1 addition & 4 deletions include/highfive/bits/H5Dataspace_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5DATASPACE_MISC_HPP
#define H5DATASPACE_MISC_HPP
#pragma once

#include <array>
#include <initializer_list>
Expand Down Expand Up @@ -167,5 +166,3 @@ inline bool checkDimensions(const DataSpace& mem_space, size_t input_dims) {

} // namespace details
} // namespace HighFive

#endif // H5DATASPACE_MISC_HPP
5 changes: 1 addition & 4 deletions include/highfive/bits/H5Exception_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5EXCEPTION_MISC_HPP
#define H5EXCEPTION_MISC_HPP
#pragma once

#include <cstdlib>
#include <sstream>
Expand Down Expand Up @@ -61,5 +60,3 @@ struct HDF5ErrMapper {
};

} // namespace HighFive

#endif // H5EXCEPTION_MISC_HPP
5 changes: 1 addition & 4 deletions include/highfive/bits/H5FileDriver_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5FILEDRIVER_MISC_HPP
#define H5FILEDRIVER_MISC_HPP
#pragma once

namespace HighFive {

Expand All @@ -19,5 +18,3 @@ inline MPIOFileDriver::MPIOFileDriver(MPI_Comm comm, MPI_Info info) {
#endif

} // namespace HighFive

#endif // H5FILEDRIVER_MISC_HPP
5 changes: 1 addition & 4 deletions include/highfive/bits/H5File_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* http://www.boost.org/LICENSE_1_0.txt)
*
*/
#ifndef H5FILE_MISC_HPP
#define H5FILE_MISC_HPP
#pragma once

#include <string>

Expand Down Expand Up @@ -153,5 +152,3 @@ inline void File::flush() {
}

} // namespace HighFive

#endif // H5FILE_MISC_HPP

0 comments on commit cde6909

Please sign in to comment.