1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00
Commit graph

160 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
d2f248dc70 Bug 353352 - CFG doesn't handle range-based for loop
Change-Id: Ic71c15d26d31d954fbc4c91882dd9361d9b23eae
2014-09-09 22:44:58 -04:00
Sergey Prigogin
d87c480f47 Proper reporting of unsupported statement types.
Change-Id: I4e4745bf7661329873107e8849f6200577756891
Reviewed-on: https://git.eclipse.org/r/31725
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-14 17:50:36 -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
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
Sergey Prigogin
dc19bb3b6b Bug 431544 - UnsupportedOperationException in
ControlFlowGraphBuilder.build

Change-Id: I91fd0b4e1a816b80a4bbad5e7a8ee1f61f9862a9
Reviewed-on: https://git.eclipse.org/r/24214
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-03-31 13:52:52 -04:00
Sergey Prigogin
14bea54256 Cosmetics. 2014-03-31 10:44:07 -07: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
Sergey Prigogin
fb08c843e9 Bug 400073 - Indexer runs out of memory.
An attempt to reduce memory consumption.
2013-12-05 19:47:34 -08:00
Andrew Gvozdev
652ce4748e Fixed parent pom version to reference 2013-08-27 15:16:24 -04:00
Sergey Prigogin
bc98f57d9a Cosmetics. 2013-07-21 21:39:18 -07:00
Sergey Prigogin
0cecd403cb Fixed an NPE. 2013-06-21 17:10:14 -07:00
Tomasz Wesolowski
660a75531a Bug 348387 - fp in ReturnChecker using try/catch 2012-11-17 01:38:45 -05:00
Sergey Prigogin
3be412111c Bumped up feature versions for Kepler. 2012-06-28 11:08:11 -07:00
Alex Ruiz
a5e61b3f44 Bug 372551. Made "run on save" checker launch mode independent of
CodanBuilder. Introduced IPostSaveListener. Show external tool name in
console (instead of "CDT Build").

Change-Id: Id2f84acdbdc433084fab1360f80ca3a30a4182ab
Reviewed-on: https://git.eclipse.org/r/5760
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-05-01 13:15:46 -04:00
Sergey Prigogin
4c3a5dd669 Moved execution of checkers from CodanBuilder to CodanRunner. 2012-04-29 19:12:28 -07:00
Sergey Prigogin
c8e3a663f0 Eliminated redundant checker runs. 2012-04-28 23:15:29 -07:00
Alex Ruiz
181907f2fd Bug 372551. Fixed running checkers on file open. Split "On file save"
launch mode into "On file save" and "On file open". Removed warnings in
project org.eclipse.cdt.codan.ui.cxx.

Change-Id: I7f0bc16731ba36e8048904f19836da9ae47514de
Reviewed-on: https://git.eclipse.org/r/5665
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-26 23:02:11 -04:00
Alex Ruiz
ba5775f033 Bug 372551. Fixed semantics of ErrorParserManager (e.g.
getErrorParserAvailableIds()) get by removing knowledge of
contexts from internal data structures (introduced in previous change
set).

Change-Id: Ia1ff68841f3b494a209e8cdf45325d640fd74ddf
Reviewed-on: https://git.eclipse.org/r/5656
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-25 16:44:50 -04: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
Sergey Prigogin
e7ef578e94 Bug 377045 - Bogus transient errors in C/C++ editor soon after Eclipse
startup.
2012-04-17 19:56:31 -07:00
Sergey Prigogin
f3f2671d48 Fixed a typo. 2012-04-17 19:55:35 -07: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
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
c40a860ba3 Bug 373695 - Quick fix fails to create local variable 2012-03-13 20:21:27 -04:00
Sergey Prigogin
0ecc12f363 Remove version constraints from dependencies between Codan plugins. 2012-02-24 12:49:54 -08:00
Alex Ruiz
3115bb4e22 Initial take on external-tool-based checkers. 2012-02-23 12:25:05 -08:00
Sergey Prigogin
e128056245 Fixed ExtractFunctionRefactoringTest.testOutputParameterWithMethodCall
test.
2012-02-08 20:58:00 -08:00
Sergey Prigogin
ecd14f70f8 Declare utility methods static. 2012-01-09 10:52:51 -08:00
Sergey Prigogin
d8c53b2501 @Override annotations. 2012-01-07 17:43:42 -08:00
Sergey Prigogin
09967ad791 Version number changes missed in the previous commit. 2011-10-19 20:53:44 -07:00
Sergey Prigogin
2932f9122c Updated parent feature version in pom.xml files. 2011-10-19 19:32:07 -07:00
Sergey Prigogin
7a3c9ba3a1 Switched to Java 1.6. 2011-10-17 18:04:17 -07:00
Sergey Prigogin
457af57f60 Changed the execution environment to JavaSE-1.6 2011-10-17 16:44:49 -07:00
Doug Schaefer
9ec9113700 Update version numbers for Juno. 2011-09-22 15:03:14 -04:00
Sergey Prigogin
a8522bf2a1 Added ability to suppress unused variable and function warnings for code
produced by macro expansion.
2011-08-29 17:03:55 -07:00
Alena Laskavaia
c3dbd2cb91 Bug 351157 - Codan Source Plugin has incorrect Bundle-Name /
Bundle-Vendor
2011-07-05 21:59:02 -04:00
Doug Schaefer
d7092b12c9 Mavenizing CDT releng.
Also removed unsupported cdt.core fragments from the platform feature.
2011-06-28 05:21:58 -04:00
Vivian Kong
1ac5b9f1e2 Bug 348747 - Codan source bundles missing required files 2011-06-08 14:10:28 +00:00
Sergey Prigogin
51401d68f6 Do not report suspicious semicolons produced by macro expansion. 2011-05-19 02:37:55 +00:00
Alena Laskavaia
a63a62bc4f Bug 343767 - [fp] 'No return' warning when return in both if and else 2011-05-01 21:14:42 +00:00
Sergey Prigogin
87ae09ee72 Bug 337486 - AbstractIndexAstChecker allows AST to outlive index read lock. 2011-04-12 22:13:46 +00:00
Sergey Prigogin
1b0fae8b18 Javadoc adjustments. 2011-04-09 20:58:50 +00:00
Emanuel Graf
39e579aa0a Bug 341089: Codan does not handle missing functions in macros correctly
https://bugs.eclipse.org/bugs/show_bug.cgi?id=341089
2011-04-06 08:11:52 +00:00
Marc-Andre Laperle
ba7cd25db1 Bug 339463 - Quick fix create local variable and others do not infer parameter types in method calls 2011-03-22 04:29:50 +00:00
Alena Laskavaia
527ee4ff5a started adding support for multiple instance problems 2011-03-20 01:53:23 +00:00
Alena Laskavaia
2122fc3c99 method should be syncronized 2011-03-19 18:48:54 +00:00