From b6c54ac58954a7d538d59fc5d1cb2b13a6404c7d Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Mon, 6 Mar 2023 15:32:56 -0700 Subject: [PATCH] Use unity builds to speed up clang-tidy runtime --- .github/workflows/ci.yml | 2 +- test/TestUtilities/WindowUtil.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e1b00086..c896d23eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -169,7 +169,7 @@ jobs: - name: Configure shell: bash - run: cmake -S $GITHUB_WORKSPACE -B $GITHUB_WORKSPACE/build -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DSFML_BUILD_EXAMPLES=TRUE -DSFML_BUILD_TEST_SUITE=TRUE ${{matrix.platform.flags}} + run: cmake -S $GITHUB_WORKSPACE -B $GITHUB_WORKSPACE/build -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_UNITY_BUILD=ON -DSFML_BUILD_EXAMPLES=TRUE -DSFML_BUILD_TEST_SUITE=TRUE ${{matrix.platform.flags}} - name: Analyze Code shell: bash diff --git a/test/TestUtilities/WindowUtil.hpp b/test/TestUtilities/WindowUtil.hpp index b555c7467..1ae3db1e9 100644 --- a/test/TestUtilities/WindowUtil.hpp +++ b/test/TestUtilities/WindowUtil.hpp @@ -18,5 +18,7 @@ namespace sf { class VideoMode; +// Required because WindowUtil.cpp doesn't include WindowUtil.hpp +// NOLINTNEXTLINE(readability-redundant-declaration) std::ostream& operator<<(std::ostream& os, const VideoMode& videoMode); } // namespace sf