Add more rules to .clang-format

This commit is contained in:
Rangi42
2025-01-27 19:08:15 -05:00
committed by Rangi
parent 01c9106b59
commit 25c9f8f383
17 changed files with 74 additions and 44 deletions

View File

@@ -191,7 +191,8 @@ static T readLE(U const *bytes) {
// **Appends** the first line read from `file` to the end of the provided `buffer`.
// @return true if a line was read.
[[gnu::warn_unused_result]] static bool readLine(std::filebuf &file, std::string &buffer) {
[[gnu::warn_unused_result]]
static bool readLine(std::filebuf &file, std::string &buffer) {
assume(buffer.empty());
// TODO: maybe this can be optimized to bulk reads?
for (;;) {