Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2014-06-14 09:28:02 -0400
committerDoug Schaefer2014-06-16 10:26:43 -0400
commit16037a5f38845acb7194d12d70ba0ed6b5d04b90 (patch)
tree3a666760c4751fca771847ce66ae6ae0ced346e9 /codan/org.eclipse.cdt.codan.core
parent45a165b37d7a1c29d9867d32d11a7b5c8a975203 (diff)
downloadorg.eclipse.cdt-16037a5f38845acb7194d12d70ba0ed6b5d04b90.tar.gz
org.eclipse.cdt-16037a5f38845acb7194d12d70ba0ed6b5d04b90.tar.xz
org.eclipse.cdt-16037a5f38845acb7194d12d70ba0ed6b5d04b90.zip
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>
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core')
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ControlFlowGraph.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ControlFlowGraph.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ControlFlowGraph.java
index eef2262e92..c6d7003038 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ControlFlowGraph.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/cfg/ControlFlowGraph.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 Alena Laskavaia
+ * Copyright (c) 2009, 2010 Alena Laskavaia
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -61,7 +61,7 @@ public class ControlFlowGraph implements IControlFlowGraph {
/*
* (non-Javadoc)
- *
+ *
* @seeorg.eclipse.cdt.codan.provisional.core.model.cfg.IControlFlowGraph#
* getStartNode()
*/
@@ -96,7 +96,7 @@ public class ControlFlowGraph implements IControlFlowGraph {
/*
* (non-Javadoc)
- *
+ *
* @seeorg.eclipse.cdt.codan.provisional.core.model.cfg.IControlFlowGraph#
* getUnconnectedNodeIterator()
*/
@@ -107,7 +107,7 @@ public class ControlFlowGraph implements IControlFlowGraph {
/*
* (non-Javadoc)
- *
+ *
* @seeorg.eclipse.cdt.codan.provisional.core.model.cfg.IControlFlowGraph#
* getUnconnectedNodeSize()
*/
@@ -118,7 +118,7 @@ public class ControlFlowGraph implements IControlFlowGraph {
/*
* (non-Javadoc)
- *
+ *
* @see org.eclipse.cdt.codan.core.model.cfg.IControlFlowGraph#getNodes ()
*/
@Override
@@ -136,7 +136,7 @@ public class ControlFlowGraph implements IControlFlowGraph {
* @param d
* @param result
*/
- private void getNodes(IBasicBlock start, Collection<IBasicBlock> result) {
+ public void getNodes(IBasicBlock start, Collection<IBasicBlock> result) {
if (start == null)
return; // huh
if (result.contains(start))

Back to the top