2007-05-25 08:51:18 +02:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
#ifndef CheckOtherH
|
|
|
|
#define CheckOtherH
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// Casting
|
|
|
|
void WarningOldStylePointerCast();
|
|
|
|
|
|
|
|
// Use standard functions instead
|
|
|
|
void WarningIsDigit();
|
|
|
|
|
2007-06-05 06:51:01 +02:00
|
|
|
// Use standard functions instead
|
|
|
|
void WarningIsAlpha();
|
|
|
|
|
2007-05-25 08:51:18 +02:00
|
|
|
// Redundant code
|
|
|
|
void WarningRedundantCode();
|
|
|
|
|
|
|
|
// Warning upon: if (condition);
|
|
|
|
void WarningIf();
|
|
|
|
|
2007-07-24 08:23:28 +02:00
|
|
|
// Assignment in condition
|
|
|
|
void CheckIfAssignment();
|
|
|
|
|
2007-05-25 08:51:18 +02:00
|
|
|
// Using dangerous functions
|
|
|
|
void WarningDangerousFunctions();
|
|
|
|
|
2007-06-05 20:58:27 +02:00
|
|
|
// Invalid function usage..
|
|
|
|
void InvalidFunctionUsage();
|
2007-05-25 08:51:18 +02:00
|
|
|
|
2008-02-20 19:20:59 +01:00
|
|
|
// Check for unsigned division that might create bad results
|
|
|
|
void CheckUnsignedDivision();
|
|
|
|
|
2008-03-16 14:17:43 +01:00
|
|
|
// Check scope of variables
|
|
|
|
void CheckVariableScope();
|
|
|
|
|
2008-05-03 09:20:25 +02:00
|
|
|
// Check for constant function parameter
|
|
|
|
void CheckConstantFunctionParameter();
|
|
|
|
|
2008-05-09 20:29:42 +02:00
|
|
|
// Check that all struct members are used
|
|
|
|
void CheckStructMemberUsage();
|
|
|
|
|
2008-08-28 08:36:30 +02:00
|
|
|
// Using char variable as array index / as operand in bit operation
|
|
|
|
void CheckCharVariable();
|
|
|
|
|
2008-09-20 19:34:37 +02:00
|
|
|
// Incomplete statement. A statement that only contains a constant or variable
|
|
|
|
void CheckIncompleteStatement();
|
2008-08-28 08:36:30 +02:00
|
|
|
|
2007-05-25 08:51:18 +02:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
#endif
|
|
|
|
|