Inactivated tests that are not accurate
This commit is contained in:
parent
b80b5999c2
commit
c3474c4ef9
16
main.cpp
16
main.cpp
|
@ -59,16 +59,18 @@ int main(int argc, char* argv[])
|
||||||
tokens = tokens_back = NULL;
|
tokens = tokens_back = NULL;
|
||||||
Tokenize(argv[argc - 1]);
|
Tokenize(argv[argc - 1]);
|
||||||
|
|
||||||
std::ofstream f("tokens.txt");
|
//std::ofstream f("tokens.txt");
|
||||||
for (TOKEN *tok = tokens; tok; tok = tok->next)
|
//for (TOKEN *tok = tokens; tok; tok = tok->next)
|
||||||
f << tok->linenr << ":" << tok->str << '\n';
|
// f << tok->linenr << ":" << tok->str << '\n';
|
||||||
f.close();
|
//f.close();
|
||||||
|
|
||||||
// Check that all class constructors are ok.
|
// Check that all class constructors are ok.
|
||||||
CheckConstructors();
|
// Temporarily inactivated to avoid any false positives
|
||||||
|
//CheckConstructors();
|
||||||
|
|
||||||
// Check that all private functions are called.
|
// Check that all private functions are called.
|
||||||
CheckUnusedPrivateFunctions();
|
// Temporarily inactivated to avoid any false positives
|
||||||
|
//CheckUnusedPrivateFunctions();
|
||||||
|
|
||||||
// Check that the memsets are valid.
|
// Check that the memsets are valid.
|
||||||
// This function can do dangerous things if used wrong.
|
// This function can do dangerous things if used wrong.
|
||||||
|
@ -85,7 +87,7 @@ int main(int argc, char* argv[])
|
||||||
// Including header
|
// Including header
|
||||||
//WarningIncludeHeader();
|
//WarningIncludeHeader();
|
||||||
|
|
||||||
//
|
// if (a) delete a;
|
||||||
WarningRedundantCode();
|
WarningRedundantCode();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue