Daniel Marjamäki
cf180dcc6b
add script to generate cfg tests
2018-03-18 13:03:19 +01:00
Daniel Marjamäki
52fb9d3743
generate_cfg_tests: Added tool that generates test cases from cfg file
2018-03-18 12:50:55 +01:00
Paul Fultz II
73ac27cc79
Fix loading library when running tests from build directory ( #1123 )
2018-03-18 06:50:33 +01:00
Daniel Marjamäki
ec6133aea2
Fixed #8182 (False positive uninitvar - variable initialized in function in ternary expression)
2018-03-16 19:13:48 +01:00
amai2012
449dcc15e8
Add links to external references
2018-03-16 08:12:39 +01:00
Sebastian
e4becc5616
GUI: Fix loading of platform files in project file dialog ( #1122 )
...
Platform::loadPlatformFile needs the path to the binary not only the
path to the directory where the binary is in. Otherwise the last
directory could get stripped away and the platform files maybe will not
be found.
2018-03-16 05:35:30 +01:00
Daniel Marjamäki
57b96d3aaa
update simplecpp
2018-03-15 21:34:58 +01:00
Sebastian
ad5f7cbf71
GUI: Minor fix: Rename one of the two layout items with the same name ( #1121 )
...
Qt warns about two QVBoxLayout objects with the same name and
automatically renames one.
This fixes the warning.
2018-03-15 14:59:34 +01:00
Sebastian
65c85cbb53
Windows library: Add intrinsics __noop and __nop ( #1119 )
2018-03-15 12:31:20 +01:00
Paul Fultz II
166e4cafcd
Check for functions calls in sizeof calculations ( #1111 )
...
* Check for functions calls in sizeof calculations
* Use seperate message and id for sizeofFunction
* Check for overloads
* Using decltype with a function should not be an error
* Fix warning
* Fix false positives when running pass the close paren
* Fix test error
* Try to fix more false positives
* Traverse using astOperand2
* Only check first argument
* Update fixes from feedback from PR
2018-03-15 10:24:17 +01:00
Daniel Marjamäki
1110cd0c57
misra.py: updated parsing of misra-rules.txt
2018-03-14 23:00:17 +01:00
Daniel Marjamäki
c74b0934e9
misra.py: assume that '0' and '1' have essentially boolean types
2018-03-14 14:54:05 +01:00
Sebastian
ed3cd2929e
Windows library: Enhance functions, add tests ( #1117 )
...
Enhance *Equal/*Compare/*Copy/*Move/*Zero/*Fill memory functions to
catch buffer access out of bounds errors and ignored return values.
Replaced some function configuration by according defines as it is done
in windows to avoid redundant (and error prone) configurations.
2018-03-14 15:01:37 +01:00
Daniel Marjamäki
b8d0da31de
threadsafety.py: warn for local static non-class variables also
2018-03-14 11:55:01 +01:00
Daniel Marjamäki
814828f436
dump: save if variable is const
2018-03-14 11:54:23 +01:00
Daniel Marjamäki
cb6ed0555c
Fix testrunner
2018-03-14 11:11:35 +01:00
Daniel Marjamäki
2c3cd402ba
Thread safety: changed local static variable 'count' to member variable
2018-03-14 09:41:27 +01:00
Daniel Marjamäki
08ee5709ed
misra.py: updated 17.1 to catch non-compliant code in example suite
2018-03-14 09:41:23 +01:00
Dmitry-Me
6ceb4b057b
Updated TinyXML
2018-03-13 23:09:57 +03:00
Daniel Marjamäki
348232a599
misra.py: catch all 15.6 bugs in misra exemplar suite
2018-03-13 14:22:25 +01:00
Daniel Marjamäki
49c8e42b30
misra.py: Clarify code for switch case fallthrough
2018-03-13 13:14:26 +01:00
Daniel Marjamäki
9800e82d13
GUI: Allow that platform is selected in project dialog
2018-03-13 13:07:10 +01:00
Sebastian
af4181f4d1
Qt library: Add missing podtype information ( #1115 )
...
The type qintptr was missing.
qlonglong, qulonglong and uchar have known sizes, so the sizes can be
specified.
2018-03-13 12:54:17 +01:00
Daniel Marjamäki
caf0789ab3
misra.py: updated -verify behaviour, print all errors seen and not just the first
2018-03-12 15:51:41 +01:00
Daniel Marjamäki
a705391054
misra.py: minor update
2018-03-12 15:47:06 +01:00
Daniel Marjamäki
77318d0e14
misra.py: updated 16.3 code
2018-03-12 15:16:57 +01:00
Sebastian
004da46664
GUI: Make edit define tooltip more clear via example ( #1113 )
2018-03-12 15:20:09 +01:00
Daniel Marjamäki
f10d170ad3
misra addon: handle [[fallthrough]] attribute
2018-03-12 13:43:23 +01:00
Daniel Marjamäki
0d2171a553
astyle formatting
2018-03-12 13:43:04 +01:00
Daniel Marjamäki
31dd4ed787
use early continue
2018-03-12 12:50:33 +01:00
Daniel Marjamäki
c0e14d0a5d
Added doxygen comment
2018-03-12 12:49:27 +01:00
Daniel Marjamäki
3ef3a6088d
astyle formatting
2018-03-12 10:19:55 +01:00
Hinterwaeldlers
a9b1f4c640
Taking care of operation overloading functions ( #1108 )
2018-03-12 10:25:30 +01:00
Daniel Marjamäki
46307df9b6
Renamed method
2018-03-11 15:06:08 +01:00
Daniel Marjamäki
380ecc408f
Fixed #8418 (AST: wrong ast for throw expression)
2018-03-10 22:30:21 +01:00
Sebastian
7ba9ab7e4c
Gtk library: Add configuration to avoid syntax error, add test file ( #1109 )
...
Add configuration for G_UNLIKELY and G_LIKELY to avoid syntax errors
when these macros are used as condition without enclosing brackets.
Add test file to verify Gtk library configuration. Syntax check for the
test file is only done when Gtk+2.0 or Gtk+3.0 is found and working.
Tested on Cygwin and on Ubuntu 16.04.
2018-03-10 11:22:10 +01:00
Sebastian
c63cda4439
Qt library: Add missing comments and attributes and fixed some configurations ( #1110 )
2018-03-09 20:19:59 +01:00
Sebastian
eed9dfb31f
Codacy: Exclude more test files which contain errors by intention ( #1106 )
...
* Codacy: Exclude more test files which contain errors by intention
* Codacy: Exclude htmlreport/example.cc too
2018-03-07 20:30:27 +01:00
Sebastian
152fc83bf0
Qt library: Add some function configurations ( #1105 )
2018-03-07 15:24:36 +01:00
Sebastian
df34164b9f
GUI: Scratchpad: Add help texts; run astyle ( #1104 )
...
This adds labels with short explanations on how the scratchpad can be
used.
2018-03-07 12:38:50 +01:00
Martin Ettl
5fc8f13fd6
GUI: Expand found results when using the scratchpad.
2018-03-07 00:18:47 +01:00
Daniel Marjamäki
b66a214ce5
astyle formatting
...
[ci skip]
2018-03-06 22:51:06 +01:00
Sebastian
6b45be6c94
GUI: Avoid path concatenation when path is absolute ( #1103 )
...
When using an absolute path for import project, prepending the current
directory results in an invalid path and the analysis (silently, no
error shown in the GUI) fails.
2018-03-06 22:50:16 +01:00
Sebastian
857da29967
GUI: Remove redundant code ( #1102 )
...
The checked state of the addon checkboxes is already set in the
updateAddonCheckBox function directly above the removed code. I do not
see any reason to set it again and only for three of the four
checkboxes.
2018-03-06 22:49:33 +01:00
Sebastian
3c5ab13a6d
GUI: Add context menu entry for copying line nr ( #1100 )
...
* GUI: Add context menu entry for copying line nr
As requested in ticket 7947 (https://trac.cppcheck.net/ticket/7947 ) also
copying the line nr is implemented.
* Use early return for the new function and similar ones
2018-03-06 15:34:14 +01:00
orbitcowboy
d637d414e1
wxwidgets.cfg: Fixed wrong function names.
2018-03-05 13:49:12 +01:00
orbitcowboy
e824301cb5
wxwidgets.cfg: Fixed wrong function name.
2018-03-05 13:43:27 +01:00
orbitcowboy
402ca256be
wxwidgets.cfg: Added support for wxGrid::SetCellTextColour.
2018-03-05 13:12:24 +01:00
orbitcowboy
c31c54f1a4
wxwidgets.cfg: Improved support to for some wxSizerItem functions.
2018-03-05 00:25:47 +01:00
amai2012
b1d943894b
Copy platforms/ directory to bin/
2018-02-27 09:09:12 +01:00