Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry8192 committed Jan 6, 2025
1 parent 5221588 commit abeb4f8
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions src/clp_ffi_js/ir/StreamReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ class StreamReader {
* @return The created instance.
* @throw ClpFfiJsException if any error occurs.
*/
[[nodiscard]] static auto
create(DataArrayTsType const& data_array, ReaderOptions const& reader_options)
-> std::unique_ptr<StreamReader>;
[[nodiscard]] static auto create(
DataArrayTsType const& data_array,
ReaderOptions const& reader_options
) -> std::unique_ptr<StreamReader>;

// Destructor
virtual ~StreamReader() = default;
Expand Down Expand Up @@ -123,8 +124,7 @@ class StreamReader {
* @throw ClpFfiJsException if a message cannot be decoded.
*/
[[nodiscard]] virtual auto decode_range(size_t begin_idx, size_t end_idx, bool use_filter) const
-> DecodedResultsTsType
= 0;
-> DecodedResultsTsType = 0;
/**
* Retrieves the index of the last log event that matches the given timestamp.
*
Expand All @@ -135,9 +135,8 @@ class StreamReader {
* @return the last index smaller than the timestamp if no exact timestamp match, unless all log
* event timestamps are larger than the target. In that case, return the first log event index.
*/
[[nodiscard]] virtual auto get_log_event_index_by_timestamp(clp::ir::epoch_time_ms_t timestamp)
-> LogEventIdxTsType
= 0;
[[nodiscard]] virtual auto get_log_event_index_by_timestamp(clp::ir::epoch_time_ms_t timestamp
) -> LogEventIdxTsType = 0;

protected:
explicit StreamReader() = default;
Expand Down Expand Up @@ -199,9 +198,9 @@ class StreamReader {
*/
template <typename LogEvent>
requires requires(
LogEventWithFilterData<LogEvent> const& event,
clp::ir::epoch_time_ms_t timestamp
) {
LogEventWithFilterData<LogEvent> const& event,
clp::ir::epoch_time_ms_t timestamp
) {
{
event.get_timestamp()
} -> std::convertible_to<clp::ir::epoch_time_ms_t>;
Expand Down Expand Up @@ -299,9 +298,9 @@ auto StreamReader::generic_filter_log_events(

template <typename LogEvent>
requires requires(
LogEventWithFilterData<LogEvent> const& event,
clp::ir::epoch_time_ms_t timestamp
) {
LogEventWithFilterData<LogEvent> const& event,
clp::ir::epoch_time_ms_t timestamp
) {
{
event.get_timestamp()
} -> std::convertible_to<clp::ir::epoch_time_ms_t>;
Expand Down

0 comments on commit abeb4f8

Please sign in to comment.