Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed May 9, 2024
1 parent 97a3f2e commit 3dac52f
Show file tree
Hide file tree
Showing 49 changed files with 153 additions and 154 deletions.
2 changes: 1 addition & 1 deletion include/podio/CollectionBufferFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

#include <functional>
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>
#include <string>

#include "podio/CollectionBuffers.h"
#include "podio/SchemaEvolution.h"
Expand Down
10 changes: 5 additions & 5 deletions include/podio/GenericParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
#ifndef PODIO_GENERICPARAMETERS_H
#define PODIO_GENERICPARAMETERS_H 1

#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <initializer_list>
#include <iostream>
#include <iterator>
#include <map>
#include <memory>
#include <mutex>
#include <stddef.h>
#include <stdint.h>
#include <string>
#include <vector>
#include <initializer_list>
#include <iterator>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>

#include "podio/utilities/TypeHelpers.h"

Expand Down
6 changes: 3 additions & 3 deletions include/podio/RNTupleReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@

#include <ROOT/RNTuple.hxx>
#include <ROOT/RNTupleModel.hxx>
#include <RVersion.h>
#include <ROOT/RVersion.hxx>
#include <RVersion.h>
#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
#include <memory>

#include "podio/CollectionBranches.h"
#include "podio/GenericParameters.h"
#include "podio/ICollectionProvider.h"
#include "podio/ROOTFrameData.h"
#include "podio/SchemaEvolution.h"
#include "podio/podioVersion.h"
#include "podio/utilities/DatamodelRegistryIOHelpers.h"
#include "podio/GenericParameters.h"
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 31, 0)
#include <ROOT/RNTupleReader.hxx>
#endif
Expand Down
16 changes: 8 additions & 8 deletions include/podio/RNTupleWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@

#include <ROOT/RNTuple.hxx>
#include <ROOT/RNTupleModel.hxx>
#include <ROOT/RVersion.hxx>
#include <RVersion.h>
#include <stdint.h>
#include <ROOT/RVersion.hxx>

#include "TFile.h"
#include "podio/CollectionBase.h"
#include "podio/Frame.h"
#include "podio/GenericParameters.h"
#include "podio/SchemaEvolution.h"
#include "podio/utilities/DatamodelRegistryIOHelpers.h"
#include "TFile.h"

namespace ROOT {
namespace Experimental {
class REntry;
} // namespace Experimental
} // namespace ROOT
class REntry;
} // namespace Experimental
} // namespace ROOT
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 31, 0)
#include <ROOT/RNTupleWriter.hxx>
#endif

#include <string>
#include <unordered_map>
#include <vector>
#include <memory>
#include <string>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <vector>

namespace podio {
class Frame;
Expand Down
8 changes: 4 additions & 4 deletions include/podio/ROOTReader.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#ifndef PODIO_ROOTREADER_H
#define PODIO_ROOTREADER_H

#include <stddef.h>
#include <memory>
#include <stddef.h>
#include <string>
#include <string_view>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <vector>
#include <unordered_map>

#include "TChain.h"
#include "podio/CollectionBranches.h"
#include "podio/ROOTFrameData.h"
#include "podio/SchemaEvolution.h"
#include "podio/podioVersion.h"
#include "podio/utilities/DatamodelRegistryIOHelpers.h"
#include "TChain.h"
#include "podio/SchemaEvolution.h"

// forward declarations
class TClass;
Expand Down
6 changes: 3 additions & 3 deletions include/podio/ROOTWriter.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#ifndef PODIO_ROOTWRITER_H
#define PODIO_ROOTWRITER_H

#include <stdint.h>
#include <memory>
#include <stdint.h>
#include <string>
#include <tuple>
#include <unordered_map>
#include <vector>
#include <utility>
#include <vector>

#include "TFile.h"
#include "podio/CollectionBranches.h"
#include "podio/CollectionIDTable.h"
#include "podio/utilities/DatamodelRegistryIOHelpers.h"
#include "TFile.h"

// forward declarations
class TTree;
Expand Down
10 changes: 5 additions & 5 deletions include/podio/SIOBlock.h
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
#ifndef PODIO_SIOBLOCK_H
#define PODIO_SIOBLOCK_H

#include <functional>
#include <map>
#include <memory>
#include <podio/CollectionBase.h>
#include <podio/CollectionIDTable.h>
#include <podio/GenericParameters.h>
#include <podio/podioVersion.h>
#include <podio/utilities/TypeHelpers.h>
#include <sio/block.h>
#include <sio/definitions.h>
#include <sio/io_device.h>
#include <sio/version.h>
#include <sio/definitions.h>
#include <stddef.h>
#include <stdint.h>
#include <map>
#include <memory>
#include <string>
#include <string_view>
#include <tuple>
#include <vector>
#include <functional>
#include <unordered_map>
#include <utility>
#include <vector>

#include "podio/CollectionBuffers.h"

Expand Down
4 changes: 2 additions & 2 deletions include/podio/SIOBlockUserData.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef PODIO_SIOBLOCKUSERDATA_H
#define PODIO_SIOBLOCKUSERDATA_H

#include <algorithm>
#include <sio/api.h>
#include <sio/definitions.h>
#include <sio/io_device.h>
#include <sio/version.h>
#include <sio/definitions.h>
#include <algorithm>
#include <string>
#include <typeindex>
#include <vector>
Expand Down
8 changes: 4 additions & 4 deletions include/podio/SIOFrameData.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#ifndef PODIO_SIOFRAMEDATA_H
#define PODIO_SIOFRAMEDATA_H

#include <sio/buffer.h>
#include <sio/definitions.h>
#include <cstddef>
#include <memory>
#include <numeric>
#include <optional>
#include <sio/buffer.h>
#include <sio/definitions.h>
#include <string>
#include <vector>
#include <cstddef>
#include <utility>
#include <vector>

#include "podio/CollectionBuffers.h"
#include "podio/CollectionIDTable.h"
Expand Down
8 changes: 4 additions & 4 deletions include/podio/SIOLegacyReader.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef PODIO_SIOLEGACYREADER_H
#define PODIO_SIOLEGACYREADER_H

#include <sio/definitions.h>
#include <sio/buffer.h>
#include <fstream>
#include <memory>
#include <sio/buffer.h>
#include <sio/definitions.h>
#include <string>
#include <string_view>
#include <vector>
#include <fstream>
#include <string>

#include "podio/SIOBlock.h"
#include "podio/SIOFrameData.h"
Expand Down
4 changes: 2 additions & 2 deletions include/podio/SIOReader.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#ifndef PODIO_SIOREADER_H
#define PODIO_SIOREADER_H

#include <sio/definitions.h>
#include <fstream>
#include <memory>
#include <sio/definitions.h>
#include <string>
#include <string_view>
#include <unordered_map>
#include <fstream>
#include <vector>

#include "podio/SIOBlock.h"
Expand Down
2 changes: 1 addition & 1 deletion include/podio/SIOWriter.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef PODIO_SIOWRITER_H
#define PODIO_SIOWRITER_H

#include <fstream>
#include <sio/definitions.h>
#include <string>
#include <utility>
#include <vector>
#include <fstream>

#include "podio/SIOBlock.h"
#include "podio/utilities/DatamodelRegistryIOHelpers.h"
Expand Down
2 changes: 1 addition & 1 deletion include/podio/SchemaEvolution.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef PODIO_SCHEMAEVOLUTION_H
#define PODIO_SCHEMAEVOLUTION_H

#include <stddef.h>
#include <cstdint>
#include <functional>
#include <stddef.h>
#include <string>
#include <unordered_map>
#include <vector>
Expand Down
6 changes: 3 additions & 3 deletions include/podio/UserDataCollection.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#ifndef PODIO_USERDATACOLLECTION_H
#define PODIO_USERDATACOLLECTION_H

#include <iostream>
#include <stddef.h>
#include <stdint.h>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
#include <iostream>
#include <tuple>

#include "podio/CollectionBase.h"
#include "podio/CollectionBuffers.h"
Expand All @@ -18,7 +18,7 @@

namespace podio {
class ICollectionProvider;
} // namespace podio
} // namespace podio

#define PODIO_ADD_USER_TYPE(type) \
template <> \
Expand Down
13 changes: 6 additions & 7 deletions podioVersion.in.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define PODIO_PODIOVERSION_H

#include <cstdint>
#include <sstream>
#include <ostream>
#include <sstream>
#include <tuple>
#if __cplusplus >= 202002L
#include <compare>
Expand All @@ -13,8 +13,7 @@
// necessary

/// Define a version to be used in podio.
#define PODIO_VERSION(major, minor, patch) \
((UINT64_C(major) << 32) | (UINT64_C(minor) << 16) | UINT64_C(patch))
#define PODIO_VERSION(major, minor, patch) ((UINT64_C(major) << 32) | (UINT64_C(minor) << 16) | UINT64_C(patch))
/// Get the major version from a preprocessor defined version
#define PODIO_MAJOR_VERSION(v) (((v) & (-1UL >> 16)) >> 32)
/// Get the minor version from a preprocessor defined version
Expand All @@ -23,9 +22,9 @@
#define PODIO_PATCH_VERSION(v) ((v) & (-1UL >> 48))

// Some helper constants that are populated by the cmake configure step
#define podio_VERSION_MAJOR @podio_VERSION_MAJOR@
#define podio_VERSION_MINOR @podio_VERSION_MINOR@
#define podio_VERSION_PATCH @podio_VERSION_PATCH@
#define podio_VERSION_MAJOR @podio_VERSION_MAJOR @
#define podio_VERSION_MINOR @podio_VERSION_MINOR @
#define podio_VERSION_PATCH @podio_VERSION_PATCH @
#define podio_VERSION PODIO_VERSION(podio_VERSION_MAJOR, podio_VERSION_MINOR, podio_VERSION_PATCH)

/// The encoded version with which podio has been built
Expand All @@ -42,7 +41,7 @@ struct Version {
uint16_t patch{0};

#if __cplusplus >= 202002L
auto operator<=>(const Version&) const = default;
auto operator<= > (const Version&) const = default;
#else
// No spaceship yet in c++17
#define DEFINE_COMP_OPERATOR(OP) \
Expand Down
2 changes: 1 addition & 1 deletion src/CollectionIDTable.cc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// podio specific includes
#include "podio/CollectionIDTable.h"

#include <stddef.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <stddef.h>
#include <utility>

#include "MurmurHash3.h"
Expand Down
10 changes: 5 additions & 5 deletions src/RNTupleReader.cc
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#include "podio/RNTupleReader.h"

#include <ROOT/RError.hxx>
#include <stddef.h>
#include <stdint.h>
#include <ROOT/REntry.hxx>
#include <ROOT/RError.hxx>
#include <ROOT/RNTupleModel.hxx>
#include <ROOT/RNTupleView.hxx>
#include <memory>
#include <algorithm>
#include <format>
#include <iostream>
#include <memory>
#include <numeric>
#include <optional>
#include <stddef.h>
#include <stdint.h>
#include <tuple>
#include <utility>

Expand All @@ -20,8 +20,8 @@
#include "podio/CollectionIDTable.h"
#include "podio/DatamodelRegistry.h"
#include "podio/GenericParameters.h"
#include "rootUtils.h"
#include "podio/ObjectID.h"
#include "rootUtils.h"

namespace podio {

Expand Down
Loading

0 comments on commit 3dac52f

Please sign in to comment.