Cleanup old tests
This commit is contained in:
parent
6080808878
commit
89061edbba
|
@ -1,2 +0,0 @@
|
||||||
[testdangerousfunc1\testdangerousfunc1.cpp:4]: Found 'gets'. You should use 'fgets' instead
|
|
||||||
[testdangerousfunc1\testdangerousfunc1.cpp:7]: Found 'scanf'. You should use 'fgets' instead
|
|
|
@ -1,9 +0,0 @@
|
||||||
|
|
||||||
void f()
|
|
||||||
{
|
|
||||||
gets(str);
|
|
||||||
|
|
||||||
scanf("%f", &f);
|
|
||||||
scanf("%s", str);
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void f()
|
|
||||||
{
|
|
||||||
if (p)
|
|
||||||
delete p;
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
|
|
||||||
#include "testh1.h"
|
|
|
@ -1,14 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
// This is a header so there should be no implementation here..
|
|
||||||
|
|
||||||
void f()
|
|
||||||
{ }
|
|
||||||
|
|
||||||
class clKalle
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
clKalle()
|
|
||||||
{ }
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
|
|
||||||
#include "testh2.h"
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
|
|
||||||
#include "emptyh.h"
|
|
||||||
|
|
||||||
class clKalle
|
|
||||||
{
|
|
||||||
|
|
||||||
};
|
|
|
@ -1,7 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
#include "h2.h"
|
|
||||||
|
|
||||||
class class1 : class2
|
|
||||||
{ };
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
|
|
||||||
class class2
|
|
||||||
{ };
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
|
|
||||||
#include "h1.h"
|
|
|
@ -1,8 +0,0 @@
|
||||||
|
|
||||||
#include "testh5.h"
|
|
||||||
|
|
||||||
void f(E1 e1)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
enum E1 {a,b,c};
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
|
|
||||||
#include "testh6.h"
|
|
||||||
|
|
||||||
onoff a;
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
|
|
||||||
typedef enum { on, off } onoff;
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
[testmemset1\testmemset1.cpp:28]: Using 'memset' on class.
|
|
||||||
[testmemset1\testmemset1.cpp:34]: Using 'memset' on struct that contains a 'std::string'
|
|
|
@ -1,36 +0,0 @@
|
||||||
|
|
||||||
class clKalle
|
|
||||||
{
|
|
||||||
private:
|
|
||||||
int i;
|
|
||||||
public:
|
|
||||||
clKalle();
|
|
||||||
};
|
|
||||||
|
|
||||||
struct S1
|
|
||||||
{
|
|
||||||
char *str;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct S2
|
|
||||||
{
|
|
||||||
std::string str;
|
|
||||||
}
|
|
||||||
|
|
||||||
clKalle::clKalle()
|
|
||||||
{
|
|
||||||
i = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void f()
|
|
||||||
{
|
|
||||||
clKalle *kalle = new clKalle;
|
|
||||||
memset(kalle, 0, sizeof(clKalle));
|
|
||||||
|
|
||||||
S1 s1;
|
|
||||||
memset(&s1, 0, sizeof(S1));
|
|
||||||
|
|
||||||
S2 s2;
|
|
||||||
memset(&s2, 0, sizeof(S2));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
|
|
||||||
void f(char ch)
|
|
||||||
{
|
|
||||||
if (ch>='0' && ch<='9')
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (*p>='0' && *p<='9')
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue