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
|
|
@ -57,6 +57,7 @@
|
|||
#endif
|
||||
extern ArchiveSet gOpenArchives;
|
||||
|
||||
// cppcheck-suppress ctuOneDefinitionRuleViolation
|
||||
typedef struct
|
||||
{
|
||||
char name[64];
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
// cppcheck-suppress ctuOneDefinitionRuleViolation
|
||||
class DBCFile
|
||||
{
|
||||
public:
|
||||
|
|
@ -48,8 +49,8 @@ public:
|
|||
{ }
|
||||
};
|
||||
// Iteration over database
|
||||
class Iterator;
|
||||
class Record
|
||||
class Iterator; // cppcheck-suppress ctuOneDefinitionRuleViolation
|
||||
class Record // cppcheck-suppress ctuOneDefinitionRuleViolation
|
||||
{
|
||||
public:
|
||||
[[nodiscard]] float getFloat(size_t field) const
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ union u_map_fcc
|
|||
//
|
||||
// File version chunk
|
||||
//
|
||||
// cppcheck-suppress ctuOneDefinitionRuleViolation
|
||||
struct file_MVER
|
||||
{
|
||||
union
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
// cppcheck-suppress ctuOneDefinitionRuleViolation
|
||||
class MPQArchive
|
||||
{
|
||||
public:
|
||||
|
|
@ -69,6 +70,7 @@ public:
|
|||
};
|
||||
typedef std::deque<MPQArchive*> ArchiveSet;
|
||||
|
||||
// cppcheck-suppress ctuOneDefinitionRuleViolation
|
||||
class MPQFile
|
||||
{
|
||||
//MPQHANDLE handle;
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ namespace MMAP
|
|||
{
|
||||
fclose(file);
|
||||
delete[] verts;
|
||||
delete[] inds;
|
||||
delete[] inds; // cppcheck-suppress uninitdata
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue