1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:37:35 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -19,7 +19,7 @@ static int tail_from_pos(Core::File& file, off_t startline, bool want_follow)
return 1;
while (true) {
const auto& b = file.read(4096);
auto const& b = file.read(4096);
if (b.is_empty()) {
if (!want_follow) {
break;
@ -56,7 +56,7 @@ static off_t find_seek_pos(Core::File& file, int wanted_lines)
// is smart enough to not read char-by-char. Fix it there, or fix it here :)
for (; pos >= 0; pos--) {
file.seek(pos);
const auto& ch = file.read(1);
auto const& ch = file.read(1);
if (ch.is_empty()) {
// Presumably the file got truncated?
// Keep trying to read backwards...
@ -78,7 +78,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
bool follow = false;
int line_count = DEFAULT_LINE_COUNT;
const char* file = nullptr;
char const* file = nullptr;
Core::ArgsParser args_parser;
args_parser.set_general_help("Print the end ('tail') of a file.");