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

View File

@ -70,9 +70,12 @@ struct ModifiersState
// Global Variables
////////////////////////////////////////////////////////////
namespace
{
/// Share 'modifiers' state with all windows to correctly fire pressed/released events
static ModifiersState state;
static BOOL isStateInitialized = NO;
ModifiersState state;
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_assignable_v<sf::FileInputStream>);
static std::string getTemporaryFilePath()
namespace
{
std::string getTemporaryFilePath()
{
static int counter = 0;
@ -63,6 +65,7 @@ public:
return m_path;
}
};
} // namespace
TEST_CASE("[System] sf::FileInputStream")
{