From 1192108e0946b4cd23c5e055340bb3bf6b257442 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 13 Oct 2024 09:12:09 -0700 Subject: [PATCH] Simplify lint --- .github/workflows/lint.yml | 7 ++++--- include/fmt/base.h | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bbbb8de61da5f..8ee830c61281c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,9 +16,10 @@ jobs: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Install clang-format - uses: aminya/setup-cpp@290824452986e378826155f3379d31bce8753d76 # v0.37.0 - with: - clangformat: 17.0.5 + run: | + wget https://apt.llvm.org/llvm.sh + sudo bash ./llvm.sh 17 + sudo apt install clang-format-17 - name: Run clang-format run: | diff --git a/include/fmt/base.h b/include/fmt/base.h index 2144417673bf1..cfa76a3a94d8e 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2891,7 +2891,8 @@ FMT_INLINE void println(FILE* f, format_string fmt, T&&... args) { /// Formats `args` according to specifications in `fmt` and writes the output /// to `stdout` followed by a newline. template -FMT_INLINE void println(format_string fmt, T&&... args) { +FMT_INLINE void println( + format_string fmt, T&&... args) { return fmt::println(stdout, fmt, static_cast(args)...); }