Commit Graph

14600 Commits

Author SHA1 Message Date
Matthias Krüger abccd9af95 travis: check llvm too, for greater coverage 2016-01-23 12:29:56 +01:00
Daniel Marjamäki 26612ab846 Fixed #5332 (Tokenizer: if braces not added properly 'if (x==123) label: {}') 2016-01-23 11:43:48 +01:00
Daniel Marjamäki 3d0338e9f9 Fixed #7212 (incorrectly adding function argument with no name) 2016-01-23 09:48:21 +01:00
Daniel Marjamäki 2627aada07 Fixed #7346 (Tokenizer::setVarId: No varId for member in initialization list) 2016-01-23 08:28:04 +01:00
Daniel Marjamäki f64930b7f5 Fixed #7343 (SymbolDatabase: handling of override) 2016-01-22 19:22:24 +01:00
orbitcowboy 8ce813f241 posix.cfg: Added missing <leak-ignore>-tags. 2016-01-22 11:03:37 +01:00
orbitcowboy 8ea36fb6ec gnu.cfg,posix.cfg: Added support for more functions. 2016-01-22 10:40:04 +01:00
orbitcowboy b65873711a posix.cfg,gnu.cfg: Moved a few functions from posix to gnu. Improved the documentation. 2016-01-21 16:32:00 +01:00
orbitcowboy 1464990dad posix.cfg: Added more functions and comments. 2016-01-21 16:14:59 +01:00
orbitcowboy 82c663090e windows.cfg, posix.cfg: Added support for more functions. 2016-01-21 15:48:08 +01:00
Daniel Marjamäki 7d8853d604 reduce: speed up the 'combinelines' pass 2016-01-21 14:42:10 +01:00
Daniel Marjamäki 49ff511324 Added script reduce.py that reduces code. It can complement the reduce tool. It can also be used with other tools and not just cppcheck. 2016-01-21 11:03:55 +01:00
PKEuS b7efc7793a Merge pull request #766 from Gumichan01/master
New translations (french)
2016-01-20 21:04:17 +01:00
Gumichan01 9afd632c91 French translations 2016-01-20 19:11:31 +01:00
Daniel Marjamäki 8568a80208 Fixed #6883 (Template parsing error) 2016-01-20 16:10:58 +01:00
orbitcowboy ad01a89e05 Merge pull request #765 from Dmitry-Me/checkFormatBeforeSplitting
Check string has expected format before processing it
2016-01-20 15:07:28 +01:00
Dmitry-Me 58541f7ffa Check string has expected format before processing it 2016-01-20 16:46:15 +03:00
orbitcowboy 2484a29916 Merge pull request #764 from lbakman/master
Determine if path is directory for XFS filesystem
2016-01-20 13:41:48 +01:00
Lau bakman 53f07c1423 Determine if path is directory for XFS filesystem
The dir_result->d_type == DT_DIR does not work on XFS file systems.

This is fixed by using the FileLister::isDirectory when dir_result->d_type == DT_UNKNOWN.

According to readdir_r documentation, the case where d_type == DT_UNKNOWN should be handled.
2016-01-20 12:55:48 +01:00
Daniel Marjamäki 642cc57428 CheckMemoryLeak: Fix FP when overloaded new is used 2016-01-20 10:34:03 +01:00
Daniel Marjamäki 4a3ece5847 CheckNullPointer: Fix FP for 'buf[p]' when p is NULL 2016-01-20 08:42:58 +01:00
Daniel Marjamäki ab441f3fb1 Tokenizer:vardecl: split up reference variables declared in class better 2016-01-19 15:27:11 +01:00
Daniel Marjamäki a434e0fb1a Fixed #7272 (Tokenizer:setVarId: handle namespaces better) 2016-01-19 14:32:27 +01:00
Daniel Marjamäki 516f043a43 times-vs.py: Added usage instructions 2016-01-19 13:46:21 +01:00
Daniel Marjamäki 93dd3a21fd Add times script for windows that uses VS compiler 2016-01-19 13:35:38 +01:00
Daniel Marjamäki dc5e2d5c8d xml: output file0 whenever it is different to filename, both for included files and when #line is used. 2016-01-19 07:01:21 +01:00
Matthias Krüger 5ab8c20d8e readme: minor fix 2016-01-18 19:09:43 +01:00
Matthias Krüger 5440e0d5a0 readme: document proposed CXXFLAGS for release build 2016-01-18 19:07:40 +01:00
Daniel Marjamäki 79aec559d5 Fixed #7243 (False positive unknownEvaluationOrder - comma operator inside while-clause) 2016-01-18 16:10:51 +01:00
Daniel Marjamäki 5a28bce631 Merge pull request #763 from Dmitry-Me/changeSuspiciosVariableType
This variable type looks very suspicious
2016-01-18 15:46:57 +01:00
Daniel Marjamäki b9a4a950a2 Fixed #7144 (Tokenizer::isScopeNoReturn: handling '{ { throw new string(..); } }') 2016-01-18 15:39:20 +01:00
Dmitry-Me afe659cc88 This variable type looks very suspicious 2016-01-18 09:52:35 +03:00
Daniel Marjamäki d656e3a056 Fixed #7103 (isReturnScope: handling 'return (bstr){0};') 2016-01-17 12:38:49 +01:00
Matthias Krüger c676f626b9 run dmake 2016-01-16 19:13:53 +01:00
Daniel Marjamäki d54f4f9c65 Fix TestAstUtils 2016-01-16 19:08:51 +01:00
Daniel Marjamäki 522de81cc7 Refactoring: Move isReturn() to astutils and rename it to isReturnScope() 2016-01-16 18:52:34 +01:00
Akhilesh Nema efff2c5397 Fixed #7294 (GUI: Add option in 'Settings' for 'Statistics Dialog' display.) 2016-01-16 17:43:57 +01:00
Akhilesh Nema 06ded4a3d4 Fixed #7240 (GUI: Result tree Context Menu should show default editor application only.) 2016-01-16 15:19:06 +01:00
Daniel Marjamäki d39097f52a Removed redundant null pointer check 2016-01-16 14:15:51 +01:00
Daniel Marjamäki ca7ec25b92 Merge pull request #708 from siemens/preprocessor-directives-for-addons-v2
Add preprocessor directives dump and Y2038 addon
2016-01-16 12:28:14 +01:00
Akhilesh Nema 2f29efce68 Fixed #7295 (GUI: 'Edit Project' and 'Close Project' actions getting enabled after Files/Directory check.) 2016-01-16 09:59:02 +01:00
Matthias Krüger 7b1710a44f redundantAssignment: change from severity 'performance' to 'style' since avoiding unneccessary stores is a basic optimization done by compilers. 2016-01-15 22:01:40 +01:00
Roberto Martelloni bb6880919c CWE mapping 2016-01-15 17:07:14 +01:00
Akhilesh Nema 4aa2876ca0 Fixed #7278 (GUI: error rechecking with some files) 2016-01-15 16:52:22 +01:00
orbitcowboy 979dfc3f4e Merge pull request #760 from Dmitry-Me/omitUnneededBetterName
Remove repeated code, better variable name
2016-01-15 15:48:57 +01:00
Dmitry-Me 26788a1dc1 Remove repeated code, better variable name 2016-01-15 17:20:40 +03:00
orbitcowboy 3a1c20e9c4 Merge pull request #756 from Dmitry-Me/useSubstrToGetSubstring
Use substr() instead of assignment plus erase()
2016-01-15 13:28:37 +01:00
Albert ARIBAUD (3ADEV) 38e70dfb74 Preprocessor directives for addons
This patch augments the XML dumps with a 'directivelist'
subnode which lists all raw preprocessor directives met
while reading the source code in each configuration.

Also, the addons/cppcheckdata.py file has been extended
to give easy access to the list of directives and to
provide Python support for the --template (or short -t)
option.

Finally, an new addon, addons/y2038/y2038.py, is created
to detect when a glibc symbol might be Y2038-sensitive,
based on whether and how _TIME_BITS and _USE_TIME_BITS64
are defined when meeting the symbol.
2016-01-15 12:36:35 +01:00
Dmitry-Me 7bf88fbb09 Use substr() instead of assignment plus erase() 2016-01-15 14:22:08 +03:00
Daniel Marjamäki 930e7f7004 Fixed Cppcheck format string warning 2016-01-15 09:45:47 +01:00