cppcheck: removed checking of implementation in header. temporarily

commented out the check for variable scope. These changes were made so 
that fewer warning messages will be produced when running c++check
This commit is contained in:
Daniel Marjamäki 2008-09-24 14:01:45 +00:00
parent 534445951c
commit 13f5196e52
1 changed files with 6 additions and 8 deletions

View File

@ -225,6 +225,7 @@ int main(int argc, char* argv[])
if ( CheckCodingStyle && filenames.size() > 1 ) if ( CheckCodingStyle && filenames.size() > 1 )
{ {
errout.str(""); errout.str("");
std::cout << "Checking usage of global functions..\n";
CheckGlobalFunctionUsage(filenames); CheckGlobalFunctionUsage(filenames);
if ( ! errout.str().empty() ) if ( ! errout.str().empty() )
{ {
@ -315,9 +316,6 @@ static void CppCheck(const char FileName[], unsigned int FileId)
// Check that all private functions are called. // Check that all private functions are called.
CheckUnusedPrivateFunctions(); CheckUnusedPrivateFunctions();
// Found implementation in header
WarningHeaderWithImplementation();
// Warning upon c-style pointer casts // Warning upon c-style pointer casts
const char *ext = strrchr(FileName, '.'); const char *ext = strrchr(FileName, '.');
if (ext && strcmp(ext,".cpp")==0) if (ext && strcmp(ext,".cpp")==0)
@ -336,17 +334,17 @@ static void CppCheck(const char FileName[], unsigned int FileId)
WarningIf(); WarningIf();
// Variable scope (check if the scope could be limited) // Variable scope (check if the scope could be limited)
CheckVariableScope(); //CheckVariableScope();
// Check if a constant function parameter is passed by value // Check if a constant function parameter is passed by value
CheckConstantFunctionParameter(); CheckConstantFunctionParameter();
// Unused struct members.. // Unused struct members..
CheckStructMemberUsage(); CheckStructMemberUsage();
// Check for various types of incomplete statements that could for example // Check for various types of incomplete statements that could for example
// mean that an ';' has been added by accident // mean that an ';' has been added by accident
CheckIncompleteStatement(); CheckIncompleteStatement();
} }
// Clean up tokens.. // Clean up tokens..