Fix clang-tidy-16 errors

This commit is contained in:
Chris Thrasher 2023-03-23 14:13:52 -06:00
parent 25da9833c2
commit 2d2f684786
3 changed files with 13 additions and 4 deletions

View File

@ -74,7 +74,9 @@ jobs:
- name: Install macOS Tools - name: Install macOS Tools
if: runner.os == 'macOS' if: runner.os == 'macOS'
run: brew install gcovr ninja run: |
brew update
brew install gcovr ninja
- name: Install OpenCppCoverage and add to PATH - name: Install OpenCppCoverage and add to PATH
uses: nick-fields/retry@v2 uses: nick-fields/retry@v2
@ -208,6 +210,7 @@ jobs:
- name: Install macOS Dependencies - name: Install macOS Dependencies
if: runner.os == 'macOS' if: runner.os == 'macOS'
run: | run: |
brew update
brew install llvm brew install llvm
echo /usr/local/opt/llvm/bin >> $GITHUB_PATH echo /usr/local/opt/llvm/bin >> $GITHUB_PATH

View File

@ -70,9 +70,12 @@ struct ModifiersState
// Global Variables // Global Variables
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
namespace
{
/// Share 'modifiers' state with all windows to correctly fire pressed/released events /// Share 'modifiers' state with all windows to correctly fire pressed/released events
static ModifiersState state; ModifiersState state;
static BOOL isStateInitialized = NO; BOOL isStateInitialized = NO;
}
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -14,7 +14,9 @@ static_assert(!std::is_copy_assignable_v<sf::FileInputStream>);
static_assert(std::is_nothrow_move_constructible_v<sf::FileInputStream>); static_assert(std::is_nothrow_move_constructible_v<sf::FileInputStream>);
static_assert(std::is_nothrow_move_assignable_v<sf::FileInputStream>); static_assert(std::is_nothrow_move_assignable_v<sf::FileInputStream>);
static std::string getTemporaryFilePath() namespace
{
std::string getTemporaryFilePath()
{ {
static int counter = 0; static int counter = 0;
@ -63,6 +65,7 @@ public:
return m_path; return m_path;
} }
}; };
} // namespace
TEST_CASE("[System] sf::FileInputStream") TEST_CASE("[System] sf::FileInputStream")
{ {