Commit Graph

86 Commits

Author SHA1 Message Date
Daniel Marjamäki a3a4d72082 preprocessor: Use the new preprocessor in cppcheck 2008-10-30 19:42:34 +00:00
Daniel Marjamäki a54cd2df44 preprocessor: Minor cleanups and fixes 2008-10-30 16:46:05 +00:00
Daniel Marjamäki 853fea4541 Check that a supported compiler is used to when compiling c++check 2008-10-30 04:45:59 +00:00
Daniel Marjamäki 5b9aa96aba Licensing: Using the GPL 3 license 2008-10-26 07:55:15 +00:00
Daniel Marjamäki 4f096f6c07 Usage of Global functions: Only checked if "--all" is given. Show progress. 2008-10-25 17:54:04 +00:00
Daniel Marjamäki 5115420809 CheckUnsignedDivision: Made it more accurate and moved it to the
standard checks
2008-10-04 12:12:24 +00:00
Daniel Marjamäki 13f5196e52 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
2008-09-24 14:01:45 +00:00
Daniel Marjamäki 815dd364ed Incomplete statement: Check for statements that begin with a constant 2008-09-20 17:34:37 +00:00
Daniel Marjamäki ca0f04b825 visual c++: added "--recursive" support 2008-09-11 18:35:08 +00:00
Daniel Marjamäki 5e9f1010ff compilation: Various cross compilation fixes. The "--recursive" option doesn't work on VC now. 2008-09-11 17:03:58 +00:00
Daniel Marjamäki ffb6e1dc6e compilation: hopefully the program should be compilable on VC now 2008-09-10 18:15:33 +00:00
Daniel Marjamäki ae322b5f45 made cppcheck compile with g++ 4.3 2008-08-30 18:29:37 +00:00
Daniel Marjamäki 0e267441de djgpp: Fixed compiler warnings/errors when compiling with DJGPP 2008-08-30 16:38:56 +00:00
Daniel Marjamäki 778410ccbf char variable usage: Added checking 2008-08-28 06:36:30 +00:00
Daniel Marjamäki 219d82e180 CheckStructMemberUsage: Check for unused struct members 2008-05-09 18:29:42 +00:00
Daniel Marjamäki cae2e190da Added check: passing constant function parameter by value instead of by reference/pointer 2008-05-03 07:20:25 +00:00
Daniel Marjamäki 214266c08c Added comments 2008-04-11 06:58:45 +00:00
Daniel Marjamäki 62e06185f8 Minor updates to [232] and [233]. Use __GNUC__ define instead of CYGWIN 2008-04-06 06:45:30 +00:00
Daniel Marjamäki 794710a0bd Addon to [232] 2008-04-06 06:35:53 +00:00
Daniel Marjamäki a938b4ed39 Fixing bug 1935006 - Compile problems on cygwin 2008-04-06 06:26:11 +00:00
Daniel Marjamäki 69d33444d4 Added style checks to check for unused global functions 2008-03-29 09:44:23 +00:00
Daniel Marjamäki f8569f0db4 Refactoring: Removed 'HasErrors'. Better usage of 'Match'. Hid the 'FunctionList' 2008-03-28 17:40:24 +00:00
Daniel Marjamäki 4691999ede Refactoring: Replaced deprecated "match" with the new "Match" 2008-03-28 07:18:03 +00:00
Daniel Marjamäki b1b7593c76 Updates here and there to make it more accurate 2008-03-19 06:03:56 +00:00
Daniel Marjamäki 119e719d52 bug fixes for 'CheckVariableScope' 2008-03-16 17:39:38 +00:00
Daniel Marjamäki a6696d6f7d Removed false positives and also duplicate error messages. 2008-02-22 14:30:43 +00:00
Daniel Marjamäki 6100b19640 sort the files before checking to make the results comparable 2008-02-22 07:25:31 +00:00
Daniel Marjamäki 97003e8064 recursive checking when compiling with gcc 2008-02-21 19:01:24 +00:00
Daniel Marjamäki b6ea2e43ff recursive checking when compiled by borland c++ 2008-02-21 17:56:51 +00:00
Daniel Marjamäki 08b3b2ab63 CheckUnsignedDivision: Added check. Not very accurate yet. 2008-02-20 18:20:59 +00:00
Daniel Marjamäki 72d9e43f92 Made it compilable by borland c++ 2008-02-18 17:11:34 +00:00
Daniel Marjamäki f06c65c071 checking multiple files 2008-02-17 18:28:51 +00:00
Daniel Marjamäki 2dace08aae Unit Testing: Moved 'testmemcheck' 2008-02-16 18:24:13 +00:00
Daniel Marjamäki 4cb3c7b96b Unit Testing: Start 2008-02-16 15:46:32 +00:00
Daniel Marjamäki a770561de4 check for uninitialized variables - less generic to increase accuracy 2008-01-10 19:01:16 +00:00
Daniel Marjamäki e7e9402ab0 disabled checks that generates false positives 2007-10-22 06:59:28 +00:00
Daniel Marjamäki 639d5fe344 Don't allow search pattern in the filename yet. There's no way to solve it through ANSI C. 2007-07-26 06:17:25 +00:00
Daniel Marjamäki ae8a914832 Searching multiple files 2007-07-24 06:24:12 +00:00
Daniel Marjamäki eb0361d6b5 Command line options: Added "--all" and "--style", removed "-w" 2007-07-20 15:43:39 +00:00
Daniel Marjamäki 3ee0d3c9d3 Improved the buffer overrun checks. Results that are not 100% certain must be enabled through the "-w". 2007-07-19 06:21:01 +00:00
Daniel Marjamäki 93b3e2e5aa Buffer overruns, using string with unknown length 2007-07-18 06:12:16 +00:00
Daniel Marjamäki ba13ad5e3c Minor updates to make it portable to Linux. 2007-07-17 06:15:50 +00:00
Daniel Marjamäki bc70635e10 Main: More checks are only done when the '-w' flag is given. 2007-06-08 18:01:23 +00:00
Daniel Marjamäki 921dd3cf21 Added check: suspicious usage of strtok 2007-06-05 20:29:03 +00:00
Daniel Marjamäki 10a7868fc6 Invalid Function Parameter: Check calls to strtol and strtoul 2007-06-05 18:58:27 +00:00
Daniel Marjamäki cf7485ce0c Added check: 'IsAlpha' 2007-06-05 04:51:01 +00:00
Daniel Marjamäki eb24a6fecd CheckHeaders: Check for unnecessary headers. some fixes. 2007-06-04 06:31:57 +00:00
Daniel Marjamäki f99a79de9b minor updates 2007-05-29 17:12:14 +00:00
Daniel Marjamäki ae46002607 Tokenize: Simplify declarations 2007-05-29 06:24:36 +00:00
Daniel Marjamäki 284266664b Main: Moved 'IsName' and 'IsNumber' to commoncheck. Moved remaining checks to checkother and checkbufferoverrun. 2007-05-25 06:48:56 +00:00