Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-04-10 18:14:09 -0400
committerSergey Prigogin2012-04-13 14:49:12 -0400
commit20ea7546f85ed277b38116bc7a99334c57e317f8 (patch)
tree3a579378ccafea85c5c7e7ba06c940dbf7306fd7 /lrparser/org.eclipse.cdt.core.lrparser
parent33374d0a517f3c40e03352b63ec4edc8885fb633 (diff)
downloadorg.eclipse.cdt-20ea7546f85ed277b38116bc7a99334c57e317f8.tar.gz
org.eclipse.cdt-20ea7546f85ed277b38116bc7a99334c57e317f8.tar.xz
org.eclipse.cdt-20ea7546f85ed277b38116bc7a99334c57e317f8.zip
Bug 316076. Added IFunction.isNoReturn() method.
Change-Id: Idfa2aa067e9c956b9a990980797a41277a84cc58 Reviewed-on: https://git.eclipse.org/r/5584 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Function.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Function.java b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Function.java
index d6f0d88bc7..662da9896a 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Function.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Function.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2008 IBM Corporation and others.
+ * Copyright (c) 2006, 2012 IBM Corporation and others.
* 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
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Sergey Prigogin (Google)
*******************************************************************************/
package org.eclipse.cdt.internal.core.dom.lrparser.c99.bindings;
@@ -34,6 +35,7 @@ public class C99Function extends PlatformObject implements IC99Binding, IFunctio
private boolean isRegister;
private boolean isStatic;
private boolean isVarArgs;
+ private boolean isNoReturn;
// the scope that the function is in (must be the global scope, no?)
private IScope scope;
@@ -117,6 +119,14 @@ public class C99Function extends PlatformObject implements IC99Binding, IFunctio
this.isVarArgs = isVarArgs;
}
+ public boolean isNoReturn() {
+ return isNoReturn;
+ }
+
+ public void setNoReturn(boolean isNoReturn) {
+ this.isNoReturn = isNoReturn;
+ }
+
public ILinkage getLinkage() {
return Linkage.C_LINKAGE;
}

Back to the top