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
Matthias Krüger
0cfd60aa34
travis: rewrite config file.
...
Uses CXXFLAGS -O2 instead of default flags to speed up self checking.
Testing is done with the following settings:
1) gcc CXXFLAGS=-O2
2) gcc CXXFLAGS=-O2 SRCDIR=build VERIFY=1
3) gcc CXXFLAGS=-O2 MAKEFLAGS="HAVE_RULES=yes"
4) gcc CXXFLAGS=-O2 SRCDIR=build VERIFY=1 MAKEFLAGS="HAVE_RULES=yes"
5) clang CXXFLAGS=-O2
6) clang CXXFLAGS=-O2 SRCDIR=build VERIFY=1
7) clang CXXFLAGS=-O2 MAKEFLAGS="HAVE_RULES=yes"
8) clang CXXFLAGS=-O2 SRCDIR=build VERIFY=1 MAKEFLAGS="HAVE_RULES=yes"
Changes made to before_install:
installe libpcre3
Changes made to script:
* make and make test are now called seperately
* cppcheck also checks "build" folder (created by SRCDIR=build) if existing.
* gui is built twice, one time with HAVE_RULES=yes as qmake argument and one time without it.
* a script has been added and run which returns false if cppcheck --showtime=top5 does not return 7 lines indicating that something is broken
2014-01-12 22:47:21 +01:00
Daniel Marjamäki
f6c7be91a9
Fixed cppcheck warning
2014-01-12 21:19:20 +01:00
Daniel Marjamäki
c9e9262682
value flow: use checknullpointer checking based on new value flow analysis in the TestNullPointer
2014-01-12 19:51:05 +01:00
Daniel Marjamäki
8b6f001f94
value flow: inconclusive handling of unknown functions
2014-01-12 19:48:20 +01:00
Daniel Marjamäki
5d2a39b580
CheckNullPointer: improved function call checking when new value flow analysis is used
2014-01-12 19:27:26 +01:00
Daniel Marjamäki
2e67ca06c0
value flow: some simplifications in unknown functions when there is library configuration
2014-01-12 18:19:00 +01:00
Daniel Marjamäki
ab866be03a
Tokenizer: Move 'else if' simplification to tokenize
2014-01-12 17:47:02 +01:00
Daniel Marjamäki
d700114edf
value flow: bailout if condition is defined by macro
2014-01-12 17:16:51 +01:00
Daniel Marjamäki
037a0ba986
GUI: change -std=c++11 to -std=c++0x as it's more backwards compatible
2014-01-12 15:46:22 +01:00
Daniel Marjamäki
bef56d7a70
reverted change I pushed by mistake
2014-01-12 15:44:40 +01:00