* Move system includes before local ones

* Remove superfluous newlines
This commit is contained in:
XhmikosR 2013-07-31 17:02:37 +03:00
parent c4890a782f
commit b2e140389f
8 changed files with 4 additions and 55 deletions

View File

@ -1,10 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
#include "webarchive.h"
#include "miniz.c"
#include <stdio.h>
#include <stdlib.h>
#define ALL_ZIP "all.zip"
int main()

View File

@ -59,4 +59,3 @@ int main()
return EXIT_SUCCESS;
}

View File

@ -66,4 +66,3 @@ int main()
return EXIT_SUCCESS;
}

View File

@ -96,4 +96,3 @@ int main()
return EXIT_SUCCESS;
}

View File

@ -70,4 +70,3 @@ int main()
return EXIT_SUCCESS;
}

View File

@ -1,8 +1,7 @@
#include "validatexml.h"
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include "validatexml.h"
void skipspaces(const char xmldata[], int *pos, int *linenr)
{
@ -112,4 +111,3 @@ int validatexml(const char xmldata[])
return -1;
}

View File

@ -188,5 +188,3 @@ const char *validate_name_version_data(const char *data)
// No error
return NULL;
}

View File

@ -1384,8 +1384,6 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
void CheckMemoryLeakInFunction::simplifycode(Token *tok) const
{
{
@ -1983,8 +1981,6 @@ void CheckMemoryLeakInFunction::simplifycode(Token *tok) const
const Token *CheckMemoryLeakInFunction::findleak(const Token *tokens)
{
const Token *result;
@ -2034,10 +2030,6 @@ const Token *CheckMemoryLeakInFunction::findleak(const Token *tokens)
}
// Check for memory leaks for a function variable.
void CheckMemoryLeakInFunction::checkScope(const Token *Tok1, const std::string &varname, unsigned int varid, bool classmember, unsigned int sz)
{
@ -2148,15 +2140,13 @@ void CheckMemoryLeakInFunction::checkScope(const Token *Tok1, const std::string
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Check for memory leaks due to improper realloc() usage.
// Below, "a" may be set to null without being freed if realloc() cannot
// allocate the requested memory:
// a = malloc(10); a = realloc(a, 100);
//---------------------------------------------------------------------------
static bool isNoArgument(const SymbolDatabase* symbolDatabase, unsigned int varid)
{
const Variable* var = symbolDatabase->getVariableFromVarId(varid);
@ -2216,10 +2206,6 @@ void CheckMemoryLeakInFunction::checkReallocUsage()
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Checks for memory leaks inside function..
//---------------------------------------------------------------------------
@ -2274,39 +2260,11 @@ void CheckMemoryLeakInFunction::check()
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Checks for memory leaks in classes..
//---------------------------------------------------------------------------
void CheckMemoryLeakInClass::check()
{
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();