Skip to content

Commit 0dbc8f4

Browse files
committed
Please consider the following formatting changes
1 parent 4a12299 commit 0dbc8f4

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

Framework/Core/include/Framework/AnalysisHelpers.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
#include "Framework/Traits.h"
2727

2828
#include <string>
29-
namespace o2::framework {
29+
namespace o2::framework
30+
{
3031
std::string serializeProjectors(std::vector<framework::expressions::Projector>& projectors);
3132
std::string serializeSchema(std::shared_ptr<arrow::Schema>& schema);
32-
}
33+
} // namespace o2::framework
3334

3435
namespace o2::soa
3536
{

Framework/Core/src/AODReaderHelpers.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ struct Spawnable {
143143

144144
Spawnable(InputSpec const& spec)
145145
{
146-
auto loc = std::find_if(spec.metadata.begin(), spec.metadata.end(), [](ConfigParamSpec const& spc){ return spc.name.compare("projectors") == 0; });
146+
auto loc = std::find_if(spec.metadata.begin(), spec.metadata.end(), [](ConfigParamSpec const& spc) { return spc.name.compare("projectors") == 0; });
147147
std::stringstream iws(loc->defaultValue.get<std::string>());
148148
projectors = ExpressionJSONHelpers::read(iws);
149149
for (auto& i : spec.metadata) {

Framework/Core/src/ExpressionJSONHelpers.cxx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,8 @@ void o2::framework::ExpressionJSONHelpers::write(std::ostream& o, std::vector<o2
635635
w.EndObject();
636636
}
637637

638-
namespace {
638+
namespace
639+
{
639640
struct SchemaReader : public rapidjson::BaseReaderHandler<rapidjson::UTF8<>, SchemaReader> {
640641
using Ch = rapidjson::UTF8<>::Ch;
641642
using SizeType = rapidjson::SizeType;
@@ -679,7 +680,7 @@ struct SchemaReader : public rapidjson::BaseReaderHandler<rapidjson::UTF8<>, Sch
679680
{
680681
debug << "Ending array" << std::endl;
681682
if (states.top() == State::IN_LIST) {
682-
//finalize schema
683+
// finalize schema
683684
schema = std::make_shared<arrow::Schema>(fields);
684685
states.pop();
685686
return true;
@@ -773,13 +774,13 @@ struct SchemaReader : public rapidjson::BaseReaderHandler<rapidjson::UTF8<>, Sch
773774
return false;
774775
}
775776

776-
bool Int(int i) {
777+
bool Int(int i)
778+
{
777779
debug << "Int(" << i << ")" << std::endl;
778780
return Uint(i);
779781
}
780-
781782
};
782-
}
783+
} // namespace
783784

784785
std::shared_ptr<arrow::Schema> o2::framework::ArrowJSONHelpers::read(std::istream& s)
785786
{
@@ -789,13 +790,14 @@ std::shared_ptr<arrow::Schema> o2::framework::ArrowJSONHelpers::read(std::istrea
789790

790791
bool ok = reader.Parse(isw, sreader);
791792

792-
if(!ok) {
793+
if (!ok) {
793794
throw framework::runtime_error_f("Cannot parse serialized Expression, error: %s at offset: %d", rapidjson::GetParseError_En(reader.GetParseErrorCode()), reader.GetErrorOffset());
794795
}
795796
return sreader.schema;
796797
}
797798

798-
namespace {
799+
namespace
800+
{
799801
void writeSchema(rapidjson::Writer<rapidjson::OStreamWrapper>& w, arrow::Schema* schema)
800802
{
801803
for (auto& f : schema->fields()) {
@@ -807,7 +809,7 @@ void writeSchema(rapidjson::Writer<rapidjson::OStreamWrapper>& w, arrow::Schema*
807809
w.EndObject();
808810
}
809811
}
810-
}
812+
} // namespace
811813

812814
void o2::framework::ArrowJSONHelpers::write(std::ostream& o, std::shared_ptr<arrow::Schema>& schema)
813815
{

0 commit comments

Comments
 (0)