From 53d6242d6c16af383cd81c4b84974eb64c81094d Mon Sep 17 00:00:00 2001 From: SharafMohamed Date: Mon, 8 Jul 2024 08:20:59 -0400 Subject: [PATCH] Autoformatted --- components/core/src/clp/Grep.cpp | 6 +----- components/core/src/clp/StringReader.hpp | 1 + components/core/src/clp/clg/clg.cpp | 10 ++-------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/components/core/src/clp/Grep.cpp b/components/core/src/clp/Grep.cpp index a29331835..2bf077d15 100644 --- a/components/core/src/clp/Grep.cpp +++ b/components/core/src/clp/Grep.cpp @@ -543,11 +543,7 @@ bool QueryLogtype::operator<(QueryLogtype const& rhs) const { void QueryLogtype::append_logtype(QueryLogtype& suffix) { m_logtype.insert(m_logtype.end(), suffix.m_logtype.begin(), suffix.m_logtype.end()); - m_query.insert( - m_query.end(), - suffix.m_query.begin(), - suffix.m_query.end() - ); + m_query.insert(m_query.end(), suffix.m_query.begin(), suffix.m_query.end()); m_is_potentially_in_dict.insert( m_is_potentially_in_dict.end(), suffix.m_is_potentially_in_dict.begin(), diff --git a/components/core/src/clp/StringReader.hpp b/components/core/src/clp/StringReader.hpp index 23eb8651b..160580d4c 100644 --- a/components/core/src/clp/StringReader.hpp +++ b/components/core/src/clp/StringReader.hpp @@ -79,6 +79,7 @@ class StringReader : public ReaderInterface { * Closes the file if it's open */ void close(); + private: std::string m_input_string; uint32_t m_pos{0}; diff --git a/components/core/src/clp/clg/clg.cpp b/components/core/src/clp/clg/clg.cpp index 9d04db18b..ce461f4f9 100644 --- a/components/core/src/clp/clg/clg.cpp +++ b/components/core/src/clp/clg/clg.cpp @@ -595,8 +595,7 @@ int main(int argc, char const* argv[]) { // fast to create if (lexer_map_it == lexer_map.end()) { // Create forward lexer - auto insert_result - = lexer_map.emplace(buf, log_surgeon::lexers::ByteLexer()); + auto insert_result = lexer_map.emplace(buf, log_surgeon::lexers::ByteLexer()); lexer_ptr = &insert_result.first->second; load_lexer_from_file(schema_file_path, false, *lexer_ptr); } else { @@ -611,12 +610,7 @@ int main(int argc, char const* argv[]) { } // Perform search - if (!search(search_strings, - command_line_args, - archive_reader, - *lexer_ptr, - use_heuristic)) - { + if (!search(search_strings, command_line_args, archive_reader, *lexer_ptr, use_heuristic)) { return -1; } archive_reader.close();