Use unity builds to speed up clang-tidy runtime
This commit is contained in:
parent
90f05ac4e8
commit
b6c54ac589
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user