Skip to content

Commit

Permalink
Autoformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
SharafMohamed committed Jul 8, 2024
1 parent 00f4982 commit 53d6242
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
6 changes: 1 addition & 5 deletions components/core/src/clp/Grep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 1 addition & 0 deletions components/core/src/clp/StringReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
10 changes: 2 additions & 8 deletions components/core/src/clp/clg/clg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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();
Expand Down

0 comments on commit 53d6242

Please sign in to comment.