Skip to content

Commit ab11924

Browse files
committed
Appease clang-format-9
1 parent 9bb6d0f commit ab11924

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

extras/analyze/include/types.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,13 @@ struct Event {
5454

5555
inline EventId getId(EventId Id) { return Id; }
5656

57+
// clang-format off
5758
template <typename T>
5859
requires requires(const T &It) {
5960
{ It.Id } -> std::convertible_to<EventId>;
6061
}
6162
EventId getId(const T &It) { return It.Id; }
63+
// clang-format on
6264

6365
template <typename T> EventId getId(const std::vector<T> &Vec) {
6466
assert(!Vec.empty());

extras/analyze/src/types.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ void ev::defTypes(py::module &Mod) {
4242
switch (Schema->ParamTypes[Index]) {
4343
case Type::Number:
4444
return std::visit(
45+
// clang-format off
4546
[]<typename T>(T x) -> py::object {
47+
// clang-format on
4648
if constexpr (std::same_as<T, double>)
4749
return py::float_(x);
4850
else

0 commit comments

Comments
 (0)