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