Skip to content

Commit e046e8f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ee0282f commit e046e8f

17 files changed

Lines changed: 263 additions & 222 deletions

File tree

examples/7_extended_write_serial.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ int main()
2121
f.setComment("This is fine and actually encouraged by the standard");
2222
f.setAttribute(
2323
"custom_attribute_name",
24-
std::string("This attribute is manually added and can contain "
25-
"about any datatype you would want"));
24+
std::string(
25+
"This attribute is manually added and can contain "
26+
"about any datatype you would want"));
2627
// note that removing attributes required by the standard typically
2728
// makes the file unusable for post-processing
2829
f.deleteAttribute("custom_attribute_name");

include/openPMD/IO/IOTask.hpp

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ struct OPENPMDAPI_EXPORT Parameter : public AbstractParameter
128128
};
129129

130130
template <>
131-
struct OPENPMDAPI_EXPORT Parameter<Operation::CREATE_FILE>
132-
: public AbstractParameter
131+
struct OPENPMDAPI_EXPORT
132+
Parameter<Operation::CREATE_FILE> : public AbstractParameter
133133
{
134134
Parameter() = default;
135135
Parameter(Parameter &&) = default;
@@ -147,8 +147,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::CREATE_FILE>
147147
};
148148

149149
template <>
150-
struct OPENPMDAPI_EXPORT Parameter<Operation::CHECK_FILE>
151-
: public AbstractParameter
150+
struct OPENPMDAPI_EXPORT
151+
Parameter<Operation::CHECK_FILE> : public AbstractParameter
152152
{
153153
Parameter() = default;
154154
Parameter(Parameter &&) = default;
@@ -174,8 +174,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::CHECK_FILE>
174174
};
175175

176176
template <>
177-
struct OPENPMDAPI_EXPORT Parameter<Operation::OPEN_FILE>
178-
: public AbstractParameter
177+
struct OPENPMDAPI_EXPORT
178+
Parameter<Operation::OPEN_FILE> : public AbstractParameter
179179
{
180180
Parameter() = default;
181181
Parameter(Parameter &&) = default;
@@ -210,8 +210,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::OPEN_FILE>
210210
};
211211

212212
template <>
213-
struct OPENPMDAPI_EXPORT Parameter<Operation::CLOSE_FILE>
214-
: public AbstractParameter
213+
struct OPENPMDAPI_EXPORT
214+
Parameter<Operation::CLOSE_FILE> : public AbstractParameter
215215
{
216216
Parameter() = default;
217217
Parameter(Parameter &&) = default;
@@ -227,8 +227,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::CLOSE_FILE>
227227
};
228228

229229
template <>
230-
struct OPENPMDAPI_EXPORT Parameter<Operation::DELETE_FILE>
231-
: public AbstractParameter
230+
struct OPENPMDAPI_EXPORT
231+
Parameter<Operation::DELETE_FILE> : public AbstractParameter
232232
{
233233
Parameter() = default;
234234
Parameter(Parameter &&) = default;
@@ -246,8 +246,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::DELETE_FILE>
246246
};
247247

248248
template <>
249-
struct OPENPMDAPI_EXPORT Parameter<Operation::CREATE_PATH>
250-
: public AbstractParameter
249+
struct OPENPMDAPI_EXPORT
250+
Parameter<Operation::CREATE_PATH> : public AbstractParameter
251251
{
252252
Parameter() = default;
253253
Parameter(Parameter &&) = default;
@@ -265,8 +265,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::CREATE_PATH>
265265
};
266266

267267
template <>
268-
struct OPENPMDAPI_EXPORT Parameter<Operation::CLOSE_PATH>
269-
: public AbstractParameter
268+
struct OPENPMDAPI_EXPORT
269+
Parameter<Operation::CLOSE_PATH> : public AbstractParameter
270270
{
271271
Parameter() = default;
272272
Parameter(Parameter &&) = default;
@@ -282,8 +282,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::CLOSE_PATH>
282282
};
283283

284284
template <>
285-
struct OPENPMDAPI_EXPORT Parameter<Operation::OPEN_PATH>
286-
: public AbstractParameter
285+
struct OPENPMDAPI_EXPORT
286+
Parameter<Operation::OPEN_PATH> : public AbstractParameter
287287
{
288288
Parameter() = default;
289289
Parameter(Parameter &&) = default;
@@ -301,8 +301,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::OPEN_PATH>
301301
};
302302

303303
template <>
304-
struct OPENPMDAPI_EXPORT Parameter<Operation::DELETE_PATH>
305-
: public AbstractParameter
304+
struct OPENPMDAPI_EXPORT
305+
Parameter<Operation::DELETE_PATH> : public AbstractParameter
306306
{
307307
Parameter() = default;
308308
Parameter(Parameter &&) = default;
@@ -320,8 +320,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::DELETE_PATH>
320320
};
321321

322322
template <>
323-
struct OPENPMDAPI_EXPORT Parameter<Operation::LIST_PATHS>
324-
: public AbstractParameter
323+
struct OPENPMDAPI_EXPORT
324+
Parameter<Operation::LIST_PATHS> : public AbstractParameter
325325
{
326326
Parameter() = default;
327327
Parameter(Parameter &&) = default;
@@ -340,8 +340,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::LIST_PATHS>
340340
};
341341

342342
template <>
343-
struct OPENPMDAPI_EXPORT Parameter<Operation::CREATE_DATASET>
344-
: public AbstractParameter
343+
struct OPENPMDAPI_EXPORT
344+
Parameter<Operation::CREATE_DATASET> : public AbstractParameter
345345
{
346346
Parameter() = default;
347347
Parameter(Parameter &&) = default;
@@ -375,8 +375,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::CREATE_DATASET>
375375
};
376376

377377
template <>
378-
struct OPENPMDAPI_EXPORT Parameter<Operation::EXTEND_DATASET>
379-
: public AbstractParameter
378+
struct OPENPMDAPI_EXPORT
379+
Parameter<Operation::EXTEND_DATASET> : public AbstractParameter
380380
{
381381
Parameter() = default;
382382
Parameter(Parameter &&) = default;
@@ -394,8 +394,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::EXTEND_DATASET>
394394
};
395395

396396
template <>
397-
struct OPENPMDAPI_EXPORT Parameter<Operation::OPEN_DATASET>
398-
: public AbstractParameter
397+
struct OPENPMDAPI_EXPORT
398+
Parameter<Operation::OPEN_DATASET> : public AbstractParameter
399399
{
400400
Parameter() = default;
401401
Parameter(Parameter &&) = default;
@@ -415,8 +415,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::OPEN_DATASET>
415415
};
416416

417417
template <>
418-
struct OPENPMDAPI_EXPORT Parameter<Operation::DELETE_DATASET>
419-
: public AbstractParameter
418+
struct OPENPMDAPI_EXPORT
419+
Parameter<Operation::DELETE_DATASET> : public AbstractParameter
420420
{
421421
Parameter() = default;
422422
Parameter(Parameter &&) = default;
@@ -434,8 +434,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::DELETE_DATASET>
434434
};
435435

436436
template <>
437-
struct OPENPMDAPI_EXPORT Parameter<Operation::WRITE_DATASET>
438-
: public AbstractParameter
437+
struct OPENPMDAPI_EXPORT
438+
Parameter<Operation::WRITE_DATASET> : public AbstractParameter
439439
{
440440
Parameter() = default;
441441

@@ -457,8 +457,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::WRITE_DATASET>
457457
};
458458

459459
template <>
460-
struct OPENPMDAPI_EXPORT Parameter<Operation::READ_DATASET>
461-
: public AbstractParameter
460+
struct OPENPMDAPI_EXPORT
461+
Parameter<Operation::READ_DATASET> : public AbstractParameter
462462
{
463463
Parameter() = default;
464464
Parameter(Parameter &&) = default;
@@ -479,8 +479,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::READ_DATASET>
479479
};
480480

481481
template <>
482-
struct OPENPMDAPI_EXPORT Parameter<Operation::LIST_DATASETS>
483-
: public AbstractParameter
482+
struct OPENPMDAPI_EXPORT
483+
Parameter<Operation::LIST_DATASETS> : public AbstractParameter
484484
{
485485
Parameter() = default;
486486
Parameter(Parameter &&) = default;
@@ -499,8 +499,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::LIST_DATASETS>
499499
};
500500

501501
template <>
502-
struct OPENPMDAPI_EXPORT Parameter<Operation::GET_BUFFER_VIEW>
503-
: public AbstractParameter
502+
struct OPENPMDAPI_EXPORT
503+
Parameter<Operation::GET_BUFFER_VIEW> : public AbstractParameter
504504
{
505505
Parameter() = default;
506506
Parameter(Parameter &&) = default;
@@ -530,8 +530,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::GET_BUFFER_VIEW>
530530
};
531531

532532
template <>
533-
struct OPENPMDAPI_EXPORT Parameter<Operation::DELETE_ATT>
534-
: public AbstractParameter
533+
struct OPENPMDAPI_EXPORT
534+
Parameter<Operation::DELETE_ATT> : public AbstractParameter
535535
{
536536
Parameter() = default;
537537
Parameter(Parameter &&) = default;
@@ -549,8 +549,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::DELETE_ATT>
549549
};
550550

551551
template <>
552-
struct OPENPMDAPI_EXPORT Parameter<Operation::WRITE_ATT>
553-
: public AbstractParameter
552+
struct OPENPMDAPI_EXPORT
553+
Parameter<Operation::WRITE_ATT> : public AbstractParameter
554554
{
555555
Parameter() = default;
556556
Parameter(Parameter &&) = default;
@@ -583,8 +583,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::WRITE_ATT>
583583
};
584584

585585
template <>
586-
struct OPENPMDAPI_EXPORT Parameter<Operation::READ_ATT>
587-
: public AbstractParameter
586+
struct OPENPMDAPI_EXPORT
587+
Parameter<Operation::READ_ATT> : public AbstractParameter
588588
{
589589
Parameter() = default;
590590
Parameter(Parameter &&) = default;
@@ -605,8 +605,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::READ_ATT>
605605
};
606606

607607
template <>
608-
struct OPENPMDAPI_EXPORT Parameter<Operation::READ_ATT_ALLSTEPS>
609-
: public AbstractParameter
608+
struct OPENPMDAPI_EXPORT
609+
Parameter<Operation::READ_ATT_ALLSTEPS> : public AbstractParameter
610610
{
611611
Parameter() = default;
612612
Parameter(Parameter &&) = default;
@@ -637,8 +637,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::READ_ATT_ALLSTEPS>
637637
};
638638

639639
template <>
640-
struct OPENPMDAPI_EXPORT Parameter<Operation::LIST_ATTS>
641-
: public AbstractParameter
640+
struct OPENPMDAPI_EXPORT
641+
Parameter<Operation::LIST_ATTS> : public AbstractParameter
642642
{
643643
Parameter() = default;
644644
Parameter(Parameter &&) = default;
@@ -657,8 +657,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::LIST_ATTS>
657657
};
658658

659659
template <>
660-
struct OPENPMDAPI_EXPORT Parameter<Operation::ADVANCE>
661-
: public AbstractParameter
660+
struct OPENPMDAPI_EXPORT
661+
Parameter<Operation::ADVANCE> : public AbstractParameter
662662
{
663663
Parameter() = default;
664664
Parameter(Parameter &&) = default;
@@ -694,8 +694,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::ADVANCE>
694694
};
695695

696696
template <>
697-
struct OPENPMDAPI_EXPORT Parameter<Operation::AVAILABLE_CHUNKS>
698-
: public AbstractParameter
697+
struct OPENPMDAPI_EXPORT
698+
Parameter<Operation::AVAILABLE_CHUNKS> : public AbstractParameter
699699
{
700700
Parameter() = default;
701701
Parameter(Parameter &&) = default;
@@ -714,8 +714,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::AVAILABLE_CHUNKS>
714714
};
715715

716716
template <>
717-
struct OPENPMDAPI_EXPORT Parameter<Operation::DEREGISTER>
718-
: public AbstractParameter
717+
struct OPENPMDAPI_EXPORT
718+
Parameter<Operation::DEREGISTER> : public AbstractParameter
719719
{
720720
Parameter(void const *ptr_in) : former_parent(ptr_in)
721721
{}
@@ -754,8 +754,8 @@ struct OPENPMDAPI_EXPORT Parameter<Operation::TOUCH> : public AbstractParameter
754754
};
755755

756756
template <>
757-
struct OPENPMDAPI_EXPORT Parameter<Operation::SET_WRITTEN>
758-
: public AbstractParameter
757+
struct OPENPMDAPI_EXPORT
758+
Parameter<Operation::SET_WRITTEN> : public AbstractParameter
759759
{
760760
explicit Parameter() = default;
761761

include/openPMD/backend/Attribute.hpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ namespace detail
122122
}
123123
else
124124
{
125-
return {
126-
std::runtime_error("getCast: cast from string to char only "
127-
"possible if string has length 1.")};
125+
return {std::runtime_error(
126+
"getCast: cast from string to char only "
127+
"possible if string has length 1.")};
128128
}
129129
}
130130
else if constexpr (
@@ -286,8 +286,9 @@ namespace detail
286286
{
287287
auto exception = std::get<std::runtime_error>(conv);
288288
return {std::runtime_error(
289-
std::string("getCast: no scalar to vector conversion "
290-
"possible, recursive error: ") +
289+
std::string(
290+
"getCast: no scalar to vector conversion "
291+
"possible, recursive error: ") +
291292
exception.what())};
292293
}
293294
}

0 commit comments

Comments
 (0)