mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 09:24:17 +00:00
cmake+ci: run clang-tidy (#512)
* cmake+ci: run clang-tidy
* Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def
* Add initial .clang-tidy and fixes
* fix file perms
* Comment out DESCRIPTION
* Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def
* Looks like clang is allergic to the libs in the directx5 SDK
* Update .clang-tidy
* Fix typo in .clang-tidy
* Attempt to generate an action error
* Revert "Attempt to generate an action error"
This reverts commit 96c4c65fed.
* cmake: test with -Wparentheses + optionally with -Werror
* ci: -k0 is a Ninja argument
* Use -Werror only for msys2 builds
* cmake: only emit warnings for specific warnings
* cmake: and don't do -Werror/-WX anymore
* Fix warnings
* Fix mingw warnings
---------
Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
committed by
GitHub
parent
97d1ba7c71
commit
9e686e2a87
@@ -43,8 +43,9 @@ void LegoControlManager::Register(MxCore* p_listener)
|
||||
void LegoControlManager::Unregister(MxCore* p_listener)
|
||||
{
|
||||
LegoNotifyListCursor cursor(&m_notifyList);
|
||||
if (cursor.Find(p_listener))
|
||||
if (cursor.Find(p_listener)) {
|
||||
cursor.Detach();
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10029210
|
||||
|
||||
@@ -58,8 +58,9 @@ void MxControlPresenter::VTable0x68(MxBool p_unk0x50)
|
||||
// FUNCTION: LEGO1 0x10044110
|
||||
MxControlPresenter::~MxControlPresenter()
|
||||
{
|
||||
if (m_unk0x58)
|
||||
if (m_unk0x58) {
|
||||
delete m_unk0x58;
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10044180
|
||||
@@ -238,7 +239,7 @@ void MxControlPresenter::VTable0x6c(MxS16 p_val)
|
||||
|
||||
MxS16 i = 0;
|
||||
for (MxCompositePresenterList::iterator it = m_list.begin(); it != m_list.end(); it++) {
|
||||
(*it)->Enable((m_unk0x4c == 3 && m_unk0x4e == 0 || !IsEnabled()) ? FALSE : m_unk0x4e == i);
|
||||
(*it)->Enable(((m_unk0x4c == 3 && m_unk0x4e == 0) || !IsEnabled()) ? FALSE : m_unk0x4e == i);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
@@ -322,8 +323,9 @@ void MxControlPresenter::Enable(MxBool p_enable)
|
||||
MxBool MxControlPresenter::HasTickleStatePassed(TickleState p_tickleState)
|
||||
{
|
||||
MxCompositePresenterList::iterator it = m_list.begin();
|
||||
for (MxS16 i = m_unk0x4e; i > 0; i--, it++)
|
||||
for (MxS16 i = m_unk0x4e; i > 0; i--, it++) {
|
||||
;
|
||||
}
|
||||
|
||||
return (*it)->HasTickleStatePassed(p_tickleState);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user