Skip to content

Commit

Permalink
Fix exceeded lines
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZhihao-723 committed Jan 11, 2025
1 parent 33aeb99 commit 6875aa9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ deserialize_string(ReaderInterface& reader, encoded_tag_t tag, std::string& dese
* @return Forwards `deserialize_encoded_text_ast`'s return values on failure.
*/
template <typename encoded_variable_t>
requires(std::is_same_v<ir::four_byte_encoded_variable_t, encoded_variable_t> || std::is_same_v<ir::eight_byte_encoded_variable_t, encoded_variable_t>)
requires(
(std::is_same_v<ir::four_byte_encoded_variable_t, encoded_variable_t>
|| std::is_same_v<ir::eight_byte_encoded_variable_t, encoded_variable_t>)
)
[[nodiscard]] auto deserialize_encoded_text_ast_and_insert_to_node_id_value_pairs(
ReaderInterface& reader,
SchemaTree::Node::id_t node_id,
Expand Down Expand Up @@ -394,7 +397,10 @@ auto deserialize_value_and_insert_to_node_id_value_pairs(
}

template <typename encoded_variable_t>
requires(std::is_same_v<ir::four_byte_encoded_variable_t, encoded_variable_t> || std::is_same_v<ir::eight_byte_encoded_variable_t, encoded_variable_t>)
requires(
(std::is_same_v<ir::four_byte_encoded_variable_t, encoded_variable_t>
|| std::is_same_v<ir::eight_byte_encoded_variable_t, encoded_variable_t>)
)
[[nodiscard]] auto deserialize_encoded_text_ast_and_insert_to_node_id_value_pairs(
ReaderInterface& reader,
SchemaTree::Node::id_t node_id,
Expand Down
10 changes: 8 additions & 2 deletions components/core/tests/test-ffi_KeyValuePairLogEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ constexpr std::string_view cStringToEncode{"uid=0, CPU usage: 99.99%, \"user_nam
* @return The encoded result.
*/
template <typename encoded_variable_t>
requires(std::is_same_v<encoded_variable_t, eight_byte_encoded_variable_t> || std::is_same_v<encoded_variable_t, four_byte_encoded_variable_t>)
requires(
(std::is_same_v<encoded_variable_t, eight_byte_encoded_variable_t>
|| std::is_same_v<encoded_variable_t, four_byte_encoded_variable_t>)
)
[[nodiscard]] auto get_encoded_text_ast(std::string_view text)
-> clp::ir::EncodedTextAst<encoded_variable_t>;

Expand Down Expand Up @@ -101,7 +104,10 @@ auto insert_invalid_node_id_value_pairs_with_node_type_errors(
) -> bool;

template <typename encoded_variable_t>
requires(std::is_same_v<encoded_variable_t, eight_byte_encoded_variable_t> || std::is_same_v<encoded_variable_t, four_byte_encoded_variable_t>)
requires(
(std::is_same_v<encoded_variable_t, eight_byte_encoded_variable_t>
|| std::is_same_v<encoded_variable_t, four_byte_encoded_variable_t>)
)
auto get_encoded_text_ast(std::string_view text) -> clp::ir::EncodedTextAst<encoded_variable_t> {
string logtype;
vector<encoded_variable_t> encoded_vars;
Expand Down

0 comments on commit 6875aa9

Please sign in to comment.