feat(CI): add cppcheck (#15211)
Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
This commit is contained in:
parent
a5b4aecd52
commit
034b521501
22 changed files with 91 additions and 41 deletions
|
|
@ -26,6 +26,7 @@
|
|||
void BIH::buildHierarchy(std::vector<uint32>& tempTree, buildData& dat, BuildStats& stats)
|
||||
{
|
||||
// create space for the first node
|
||||
// cppcheck-suppress integerOverflow
|
||||
tempTree.push_back(uint32(3 << 30)); // dummy leaf
|
||||
tempTree.insert(tempTree.end(), 2, 0);
|
||||
//tempTree.add(0);
|
||||
|
|
|
|||
|
|
@ -187,9 +187,9 @@ public:
|
|||
while (true)
|
||||
{
|
||||
uint32 tn = tree[node];
|
||||
uint32 axis = (tn & (3 << 30)) >> 30;
|
||||
bool BVH2 = tn & (1 << 29);
|
||||
int offset = tn & ~(7 << 29);
|
||||
uint32 axis = (tn & (3 << 30)) >> 30; // cppcheck-suppress integerOverflow
|
||||
bool BVH2 = tn & (1 << 29); // cppcheck-suppress integerOverflow
|
||||
int offset = tn & ~(7 << 29); // cppcheck-suppress integerOverflow
|
||||
if (!BVH2)
|
||||
{
|
||||
if (axis < 3)
|
||||
|
|
@ -297,9 +297,9 @@ public:
|
|||
while (true)
|
||||
{
|
||||
uint32 tn = tree[node];
|
||||
uint32 axis = (tn & (3 << 30)) >> 30;
|
||||
bool BVH2 = tn & (1 << 29);
|
||||
int offset = tn & ~(7 << 29);
|
||||
uint32 axis = (tn & (3 << 30)) >> 30; // cppcheck-suppress integerOverflow
|
||||
bool BVH2 = tn & (1 << 29); // cppcheck-suppress integerOverflow
|
||||
int offset = tn & ~(7 << 29); // cppcheck-suppress integerOverflow
|
||||
if (!BVH2)
|
||||
{
|
||||
if (axis < 3)
|
||||
|
|
@ -425,7 +425,7 @@ protected:
|
|||
void createNode(std::vector<uint32>& tempTree, int nodeIndex, uint32 left, uint32 right) const
|
||||
{
|
||||
// write leaf node
|
||||
tempTree[nodeIndex + 0] = (3 << 30) | left;
|
||||
tempTree[nodeIndex + 0] = (3 << 30) | left; // cppcheck-suppress integerOverflow
|
||||
tempTree[nodeIndex + 1] = right - left + 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ SERVICE_STATUS serviceStatus;
|
|||
|
||||
SERVICE_STATUS_HANDLE serviceStatusHandle = 0;
|
||||
|
||||
// cppcheck-suppress syntaxError
|
||||
typedef WINADVAPI BOOL (WINAPI* CSD_T)(SC_HANDLE, DWORD, LPCVOID);
|
||||
|
||||
bool WinServiceInstall()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue