diff options
-rw-r--r-- | .clang-format | 2 | ||||
-rw-r--r-- | src/common.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format index 58d2721..62b1abb 100644 --- a/.clang-format +++ b/.clang-format @@ -21,7 +21,7 @@ AllowShortLoopsOnASingleLine: false AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: MultiLine +AlwaysBreakTemplateDeclarations: true BinPackArguments: true BinPackParameters: true BraceWrapping: diff --git a/src/common.h b/src/common.h index 35f9b0e..4b2683d 100644 --- a/src/common.h +++ b/src/common.h @@ -30,7 +30,8 @@ struct line_view { line_view load_file(const char*); line_view next_line(line_view, size_t*); -template <typename F, typename... Args> void per_line(line_view file, F&& f, Args&&... args) { +template <typename F, typename... Args> +void per_line(line_view file, F&& f, Args&&... args) { size_t offset = 0; line_view lv; do { |