Commit Graph

10765 Commits

Author SHA1 Message Date
Daniel Marjamäki c7032a8867 value flow: improved handling of loops 2014-01-18 11:54:00 +01:00
Daniel Marjamäki 498cdb8610 added debug output for the value flow 2014-01-18 09:58:32 +01:00
Daniel Marjamäki a7146916b1 Makefile: added -Wno-sign-compare. I don't like this warning 2014-01-18 09:51:48 +01:00
Daniel Marjamäki cda9b409ef GUI: List embedded cfg files in project dialog 2014-01-18 09:21:06 +01:00
Daniel Marjamäki 2ef95fc794 GUI: use debug mode 2014-01-18 08:50:22 +01:00
Daniel Marjamäki 81572135f4 Merge pull request #222 from rpavlik/fixmxe
Fix (cli) build on MXE
2014-01-17 23:47:42 -08:00
Daniel Marjamäki d0d56aee4a TestValueFlow: split up valueFlowBeforeCondition into smaller functions 2014-01-18 08:45:24 +01:00
Ryan Pavlik 065db3d9f6 Add a rule to the cli makefile to actually build TinyXML2 2014-01-17 15:52:05 -06:00
Ryan Pavlik 32bf275447 Fix case-insensitive string compare function on MinGW 2014-01-17 15:29:53 -06:00
Daniel Marjamäki bc79f7905a Merge pull request #221 from matthiaskrgr/travis
travis: sent out build failure notification as soon as the first job fails using    matrix: fast_finish: true
2014-01-17 12:38:05 -08:00
Robert Reif f82a2cc6af windows.cfg: improved cfg for _s functions 2014-01-17 21:30:58 +01:00
Matthias Krüger 4c9218981f travis: sent out build failure notification as soon as the first job fails using matrix: fast_finish: true 2014-01-17 20:46:20 +01:00
Daniel Marjamäki 3e23e243f6 BufferOverflow: Updated message for out of bounds array index or redundant condition 2014-01-17 19:44:45 +01:00
Daniel Marjamäki 57d318b2e5 valueflow: better handling of increment/decrement 2014-01-17 19:28:28 +01:00
Daniel Marjamäki 18d6285ad2 BufferOverrun: Improved error message when array index is used before checking that its in limits 2014-01-17 18:56:46 +01:00
Daniel Marjamäki b2b5590f2b Refactoring: Moved astStringify to the Token class and renamed it to expressionString. This can often be useful when reporting error messages that contains source code. 2014-01-17 18:37:49 +01:00
Daniel Marjamäki 36acfb6d20 Fixed Cppcheck warning. db is dereferenced before its checked against NULL 2014-01-17 18:10:10 +01:00
Daniel Marjamäki 30cae358d8 Removed the --value-flow flag. ValueFlow analysis will always be enabled from now on. 2014-01-17 18:07:05 +01:00
Daniel Marjamäki 5721e1d745 CheckNullPointer: Removed some of the old checking that doesn't use ValueFlow 2014-01-17 17:47:59 +01:00
Daniel Marjamäki 311059f603 Tokenizer: Removed commented-out simplification 2014-01-17 17:44:33 +01:00
Daniel Marjamäki 3facc06cb7 CheckOther: Removed non-valueflow check for division by possible zero before condition 2014-01-17 17:42:54 +01:00
Daniel Marjamäki 0203a4a6f5 Tokenizer: Removed simplifyGoto as it's the cause of various FPs I see 2014-01-17 17:36:45 +01:00
Daniel Marjamäki 4eb746d7cc Tokenizer: Removed simplifyComparisonOrder 2014-01-17 17:25:56 +01:00
Daniel Marjamäki 0b4de97e2b value flow: Use ValueFlow in CheckBufferOverrun 2014-01-16 19:23:14 +01:00
Daniel Marjamäki 45c9a63157 Merge pull request #220 from crumblingstatue/lang_embed_fallback
gui: Only load embedded translation if it doesn't exist in lang/
2014-01-16 08:00:25 -08:00
Daniel Marjamäki 85b73f7c24 ast: fixed hang for weird loop: 'for (each_window(list,p))' 2014-01-16 16:58:50 +01:00
Mika Attila d642faf1d8 gui: Only load embedded translation if it doesn't exist in lang/
This makes it easier to test/override translations
2014-01-16 13:04:59 +01:00
Daniel Marjamäki fb4695fcb4 Merge pull request #219 from crumblingstatue/astyle-options-none
runastyle: Ignore user's default options file
2014-01-15 22:17:39 -08:00
Daniel Marjamäki e72ec830ef ast: fixed hang in for-loop handling 2014-01-16 06:45:35 +01:00
Mika Attila 10415df93e runastyle: Ignore user's default options file
If we pass --options=none to astyle, it ignores the user's
default options file, and only uses the command line parameters.
This way, if the user has a default options file, it won't conflict
with the style set by the script.
2014-01-16 01:29:33 +01:00
Daniel Marjamäki adc8713ab3 Merge pull request #218 from crumblingstatue/embedded-lang
gui: Embed the language files into the executable
2014-01-15 08:37:28 -08:00
Daniel Marjamäki 141e089329 ast: different handling of for loops. create a syntax tree for whole 'f(a;b;c)'. 2014-01-15 17:32:14 +01:00
Mika Attila 6a97da9871 gui: Embed the language files into the executable
This allows for:
- Out-of-source builds
- Easy installation
2014-01-15 14:35:26 +01:00
Daniel Marjamäki d43191a9e3 value flow: remove duplicate test case 2014-01-14 18:13:17 +01:00
Daniel Marjamäki c547c9a108 value flow: fixed fp when variable is used in for-loop condition 2014-01-14 17:57:50 +01:00
Daniel Marjamäki e45a2e2c61 Fixed #5347 (False positive: uninitialized variable (try catch)) 2014-01-14 06:24:09 +01:00
Robert Reif d679a4c1f7 Fixed #5248 (False positive: Invalid argument in scanf for %zd) 2014-01-14 06:09:13 +01:00
Daniel Marjamäki c1c2f4bbc6 value flow: fixed crash reported in #5343 when typeStartToken and typeEndToken are misplaced. 2014-01-13 20:54:09 +01:00
Daniel Marjamäki eb774054b0 Merge pull request #210 from matthiaskrgr/travis
travis: rewrite config file.
2014-01-13 10:44:36 -08:00
Daniel Marjamäki 2b3fa9957c doxygen: added info about value flow to main page 2014-01-13 19:15:58 +01:00
Daniel Marjamäki 7981e3d38f value flow: fix fp when gotos are used 2014-01-13 16:07:25 +01:00
Daniel Marjamäki bfc67a536a value flow: fixed fp when self-checking checkbool.cpp. added some comments. 2014-01-13 06:15:21 +01:00
Daniel Marjamäki b1bbb23225 value flow: fixed fp when checking symboldatabase 2014-01-13 05:52:28 +01:00
Matthias Krüger edf44d2509 travis: check the repo with cppcheck after building gui. 2014-01-12 22:47:21 +01:00
Matthias Krüger 962018b722 revert: commit f6da9d4e3c
"testcmdlineparser: comment out unused functions fileListStdin(), ignorepaths{1-4}(), ignorefilepaths{1,2}()"
instead suppress the files.
also suppress unused variable in test/testpreprocessor.cpp
2014-01-12 22:47:21 +01:00
Matthias Krüger e1a5487c70 travis: let cppcheck check most of the repo, but suppress files/warnings that we don't care about via suppression file. 2014-01-12 22:47:21 +01:00
Matthias Krüger 73b7276ae9 travis: fail if Makefile is not up to date (check via dmake). 2014-01-12 22:47:21 +01:00
Matthias Krüger e049a44f63 travis: check cfg files with xmllint. 2014-01-12 22:47:21 +01:00
Matthias Krüger 21a2c4e468 travis: also check "test" directory while ignoring test.cxx 2014-01-12 22:47:21 +01:00
Matthias Krüger 8ae3df3249 travis: use suppression list to suppress warnings. 2014-01-12 22:47:21 +01:00