run astyle

This commit is contained in:
Robert Reif 2011-03-22 19:20:05 -04:00
parent 8308fb72e3
commit 5cdd635701
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ static const char * const call_func_white_list[] =
, "perror", "popen" ,"posix_fadvise", "posix_fallocate", "pread" , "perror", "popen" ,"posix_fadvise", "posix_fallocate", "pread"
, "printf", "psignal", "putenv", "puts", "pwrite", "qsort", "read", "readahead", "readdir", "readdir_r" , "printf", "psignal", "putenv", "puts", "pwrite", "qsort", "read", "readahead", "readdir", "readdir_r"
, "readlink", "readv" , "readlink", "readv"
, "realloc", "regcomp", "remove", "rename", "return", "rewind", "rewinddir", "rindex" , "realloc", "regcomp", "remove", "rename", "return", "rewind", "rewinddir", "rindex"
, "rmdir" ,"scandir", "scanf", "seekdir" , "rmdir" ,"scandir", "scanf", "seekdir"
, "setbuf", "setbuffer", "sethostname", "setlinebuf", "setlocale" ,"setvbuf", "snprintf", "sprintf", "sscanf" , "setbuf", "setbuffer", "sethostname", "setlinebuf", "setlocale" ,"setvbuf", "snprintf", "sprintf", "sscanf"
, "stat", "stpcpy", "strcasecmp", "strcat", "strchr", "strcmp", "strcoll" , "stat", "stpcpy", "strcasecmp", "strcat", "strchr", "strcmp", "strcoll"

View File

@ -122,7 +122,7 @@ unsigned int CppCheck::check()
std::list<std::string> configurations; std::list<std::string> configurations;
std::string filedata = ""; std::string filedata = "";
if ( (!_fileContents.empty()) && (_fileContents.find(_filenames[c]) != _fileContents.end())) if ((!_fileContents.empty()) && (_fileContents.find(_filenames[c]) != _fileContents.end()))
{ {
// File content was given as a string // File content was given as a string
std::istringstream iss(_fileContents[ _filenames[c] ]); std::istringstream iss(_fileContents[ _filenames[c] ]);