1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

193 commits

Author SHA1 Message Date
Alena Laskavaia
24d2e1a4c8 Bug 447486 - codan - CCE is thrown by control flow graph builder
- addOutgoing cannot join JumpNode - block will be added to dead list
instead
- addjusted goto code to not use addOutgoing but using setJump directly
- corrected code that doing fake return to deal jump nodes at the end
- corrected code that marks up dead code to remove jump targets
- corrected code that calculates all nodes in the graph to take into
account dangling labels
- fixed CFG viewer to show unconnected labeled statements

Change-Id: Ie4d9e37678e3ebaae8e9f268e6f37342e14a1444
Reviewed-on: https://git.eclipse.org/r/38189
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-12-14 13:09:13 -05:00
Nathan Ridge
517b811599 Bug 452325 - Protect against IVariable.getInitialValue() calling itself
recursively along any code path

Change-Id: Idbf46ca82b431e72bf6b2598427430c37ef65cc4
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/37220
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-08 13:39:24 -05:00
Alena Laskavaia
863def95be Bug 453275 - Codan tests cannot test for checkers throwing an exception
Added system flag that is used to propagate exception
instead of swallowing. Set by default in codan junit tests.

Change-Id: Iccda9a7b2e419192bb9f4eec4b89d525e152fc81
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/37482
2014-12-04 13:57:27 -05:00
Alena Laskavaia
ac11501703 Bug 353352 - CFG doesn't handle range-based for loop
Change-Id: Ic4334ce82585d4dbfbbd008fd013b0ce97cca434
Reviewed-on: https://git.eclipse.org/r/33155
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-09-12 20:13:29 -04:00
Alena Laskavaia
d2f248dc70 Bug 353352 - CFG doesn't handle range-based for loop
Change-Id: Ic71c15d26d31d954fbc4c91882dd9361d9b23eae
2014-09-09 22:44:58 -04:00
Marc-Andre Laperle
97079f6ad0 Add missing arg for jacoco in in tests. Update jacoco.
Jacoco arguments are missing when executing certain tests. This happens when
argLine is being overriden. We had the same problem in Linux Tools. We solved
it by prepending the argLine with ${tycho.testArgLine}. This should help
improving the Code coverage metric in Sonar.

Also update the jacoco version to fix a bug when building with Java 8.

Change-Id: I7f73f40488efc01fc7d643940c1ac0d5950c900d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/32507
Tested-by: Hudson CI
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2014-08-28 15:40:26 -04:00
Sergey Prigogin
d8154bd340 Inremented branding plugin version to 8.5 2014-07-21 17:39:01 -07:00
Alena Laskavaia
db43e03878 Bug 394521 Do Constant folding propagation when building CFG
When building control flow graph we can consider constants
and not add some branches in decisions nodes, that make CFG
more accurate and elimate some false positives

Change-Id: I19c623e1e6d2dc7416a0e796a98168df7a976111
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/28726
2014-06-21 10:57:37 -04:00
Chris Marr
fcd66c7d04 Bug 433357 - Added fix for false positives from GNU
Statement-Expressions

Change-Id: I21eb9978a156f2375e5b9e1992c297e3b6ca78ac
Signed-off-by: Chris Marr <cdabone@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25600
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-06-19 16:51:14 -04:00
Alena Laskavaia
16037a5f38 Bug 350168 - Return checker won't report errors in dead code
Also Bug 356908, Bug 348386

Change-Id: I48d2f74e05d2d6d7a7bf0589408ca90bc07a6922
Reviewed-on: https://git.eclipse.org/r/28527
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-06-16 10:26:43 -04:00
Marc-Andre Laperle
1cc6d6ab8e Build with 4.4 and use target definition file for maven build
Change-Id: I1044751c600e7725fd2cb02578c28d5f45de1854
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27631
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-06-03 11:52:57 -04:00
Nathan Ridge
cff738fe0b Bug 430282 - Limit recursion depth when processing inheritance
hierarchies

Change-Id: Ia9d9f379cb61e8d8bc8d1fb33f893fcd2a0688a2
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23957
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-04-06 20:56:18 -04:00
Marc-Andre Laperle
535ad23797 Fix intermittent test failures in codan
Sometimes, index-based checkers (AbstractIndexAstChecker) were skipped
because the indexer was not fully initialized so expected errors were
not getting reported.

Change-Id: Ibb764224f11ae4a867a4aa6b9de2b8ec55e90c55
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23428
Reviewed-by: Nathan Ridge <zeratul976@hotmail.com>
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-15 12:05:03 -04:00
Sergey Prigogin
5d7a19fa6c Enabled JDK 1.7.
Change-Id: Ic2a161ea3c318dc1e8ba01c271c936bf5ed8763d
Reviewed-on: https://git.eclipse.org/r/21020
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-24 13:38:55 -05:00
Sergey Prigogin
1d166260a8 Bumped up CDT version to 8.4.
Change-Id: I1229344feaaed4a3551ceb7b1ef1410545048b55
Reviewed-on: https://git.eclipse.org/r/20908
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-21 17:35:29 -05:00
Nathan Ridge
c126fade3d Bug 419938 - [fp] Pure virtual implementation not recognized if only one
path implements it

Change-Id: I90732a87d8d6b4ad2a84aa3c8b09b10727afa994
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/19823
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-12-16 00:40:02 -05:00
Nathan Ridge
62c4e62ff3 Bug 416284 - Unsafe method call, using nested templates
Change-Id: I08732af62f43c03f362d4602736ef6b8e0f227e9
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/16147
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-09-05 20:15:50 -04:00
Andrew Gvozdev
652ce4748e Fixed parent pom version to reference 2013-08-27 15:16:24 -04:00
Nathan Ridge
be4ec06f4b Bug 414279 - Derived class method that overrides a base class method
brought into the derived scope with a using-declaration

Change-Id: Ibeb49dddb7ef3768ffd4964e22a139afba8690fb
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/15573
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-08-18 21:42:34 -04:00
Nathan Ridge
5fb92e3cf8 Bug 351612 - Pure virtual implementation not recognized if multiply
inherited

Change-Id: I1e9141fbb5cc72bb7b59b77d6faf958726094e5f
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/14906
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-07-28 15:35:20 -04:00
Nathan Ridge
156990d03e Bug 352267 - Assignment in condition checker matches the whole
expression

Change-Id: I7aea1c5d404a8d374020e34c997e6e890fcdb3d6
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/14764
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-07-24 20:47:38 -04:00
Nathan Ridge
e18ad3974c Bug 358694 - False warning about Unused static function in template
Change-Id: I0ebeef9db921239e896983c68e5291316209c2d2
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/14680
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-07-19 12:54:15 -04:00
Nathan Ridge
82d19e7096 Bug 363884 - NPE using 'Add break statement' quick fix
Change-Id: I240b196d04b5f032bfaa9666db595b788b7a1d02
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/14640
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-07-18 13:18:19 -04:00
Nathan Ridge
55872baeae Bug 393129 - Do not give "unused symbol" warning for file-scope variable
used in an asm block

Change-Id: I2088bed2dd26af1220069dbdf18fda17d32fdf21
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/14608
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-07-17 13:25:26 -04:00
Nathan Ridge
70c9a7b642 Bug 399146 - Bogus 'statement has no effect' warning for call to
overloaded operator

Change-Id: Ie2092903356e048d96b8507ce30ec2d3edc2b2f7
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/14534
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-07-14 15:08:54 -04:00
Nathan Ridge
c5b4670184 Bug 400673 - [c++11] Unnecessary warning in class constructor (not
initialized member) when using "in class member initialization" 

Change-Id: I4e6af3b0927d44f0bb5417d7788fc9a026f8fb7c
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/14397
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-07-09 13:05:16 -04:00
Sergey Prigogin
c658e9df68 Cosmetics. 2013-07-07 17:17:03 -07:00
Nathan Ridge
44b957a28e Bug 408303 - [C++11] Incorrect member not initialized warnings for
template class's defaulted constructors

Change-Id: I61064421c2cee405c9a915abe500c94fa4423eef
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/14177
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-07-07 19:25:44 -04:00
Marc-Andre Laperle
718d7de48e Bug 412057 - UI tests don't run on Mac Cocoa using Tycho build
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2013-07-03 21:02:43 -04:00
Sergey Prigogin
724e1991ac Cosmetics. 2013-05-22 10:22:38 -07:00
Danny Ferreira
20e43a2744 Bug 402607 - [c++11] Invalid "member was not initialized warning" with
delegating constructors

Change-Id: I521918be7b8c1dd867b53bd22f7646e610651fb6
Reviewed-on: https://git.eclipse.org/r/13043
Reviewed-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-05-22 13:19:23 -04:00
Sergey Prigogin
cc82847af6 Bug 404774 - Invalid implicit ctor call is not marked as error 2013-04-02 23:48:43 -07:00
Sergey Prigogin
96fbfd6f00 Enabled assertions during tests. 2013-02-05 10:07:41 -08:00
Sergey Prigogin
4346a7377f Renamed few classes to distinguish tests from their base classes. 2013-01-23 11:36:51 -08:00
Sergey Prigogin
e4943b330a Fixed broken test. 2013-01-05 12:36:54 -08:00
Nathan Ridge
032c010a82 Bug 395018 - False 'member was not initalized in this constructor'
warning for defaulted copy/move constructor

Change-Id: Ib7800e46174b195fd15daef923abfff482fd3aff
Reviewed-on: https://git.eclipse.org/r/9059
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2012-12-07 13:11:57 -05:00
Nathan Ridge
8cf540fbf6 Bug 365498 - Strange warning placement for defaulted constructor
Change-Id: Ia80fbd9694310aff0900e80cb9175e101c653604
Reviewed-on: https://git.eclipse.org/r/9065
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2012-12-06 21:22:45 -05:00
Tomasz Wesolowski
660a75531a Bug 348387 - fp in ReturnChecker using try/catch 2012-11-17 01:38:45 -05:00
Markus Schorn
d643e121a0 Fix intermittent test failures. 2012-09-14 09:32:36 +02:00
Sergey Prigogin
3be412111c Bumped up feature versions for Kepler. 2012-06-28 11:08:11 -07:00
Sergey Prigogin
4e99b5aea4 Bug 383706 - Class member initialization checker produces false
positives on deleted constructors
2012-06-27 18:03:44 -07:00
Marc-Andre Laperle
af1c5c31d1 Bug 368611 - Bogus warning in template partial specialization 2012-05-13 13:45:31 -04:00
Sergey Prigogin
5a643e5e57 Made test more robust so that it doesn't fail when unrelated checkers
are present.
2012-04-28 17:57:36 -07:00
Sergey Prigogin
db6b4cf5ac Cosmetics. 2012-04-28 17:37:09 -07:00
Alex Ruiz
1f83e4aa21 Bug 372551. Codan support for writing checkers that invoke external
tools.

Change-Id: Ia5cfd24d54ec6e67e08f24a367a6bc689ae407d0
Reviewed-on: https://git.eclipse.org/r/5586
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2012-04-18 15:52:48 -04:00
Alena Laskavaia
77a06573a9 Bug 316076 - fixed f.p. when using gcc annotation about no return 2012-04-16 21:56:57 -04:00
Sergey Prigogin
ae7dc29df9 Bug 376790 - Codan should not issue warnings for unused variables and
functions that have attribute unused
2012-04-13 15:49:10 -07:00
Sergey Prigogin
ada23a9a2f Bug 372551. Removed the external tool checker support until all design
issues are resolved.
2012-03-13 18:42:16 -07:00
Marc-Andre Laperle
53bc0f10e6 Bug 368420 - FP in members not initialized in in copy constructor 2012-03-07 20:36:34 -05:00
Marc-Andre Laperle
0a9a95adcd Bug 368419 - FP in members not initialized in constructor 2012-03-07 01:33:16 -05:00