Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Stornelli2020-03-13 12:03:57 +0000
committerMarco Stornelli2020-03-23 17:18:41 +0000
commit5f316f404506ab1d1d14f1d32843bbe2ed3da04f (patch)
treebed30536e4024e65afb7a6f89e37cdd2a5e39434 /lrparser
parent67b441b1206ac1c387f0dac5d4fa43e30d0430cf (diff)
downloadorg.eclipse.cdt-5f316f404506ab1d1d14f1d32843bbe2ed3da04f.tar.gz
org.eclipse.cdt-5f316f404506ab1d1d14f1d32843bbe2ed3da04f.tar.xz
org.eclipse.cdt-5f316f404506ab1d1d14f1d32843bbe2ed3da04f.zip
Bug 534420 - Add initial support for [[nodiscard]] attribute
Diffstat (limited to 'lrparser')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/META-INF/MANIFEST.MF2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/old/org/eclipse/cdt/internal/core/dom/lrparser/c99/bindings/C99Function.java10
2 files changed, 11 insertions, 1 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/META-INF/MANIFEST.MF b/lrparser/org.eclipse.cdt.core.lrparser/META-INF/MANIFEST.MF
index 21aae609c4d..8d7fd382399 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/META-INF/MANIFEST.MF
+++ b/lrparser/org.eclipse.cdt.core.lrparser/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name.1
Bundle-SymbolicName: org.eclipse.cdt.core.lrparser;singleton:=true
-Bundle-Version: 5.2.300.qualifier
+Bundle-Version: 5.2.400.qualifier
Bundle-ClassPath: .
Require-Bundle: org.eclipse.cdt.core,
net.sourceforge.lpg.lpgjavaruntime;bundle-version="1.1.0";visibility:=reexport,
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 b6c73081316..c8e83c5a841 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
@@ -39,6 +39,7 @@ public class C99Function extends PlatformObject implements IC99Binding, IFunctio
private boolean isStatic;
private boolean isVarArgs;
private boolean isNoReturn;
+ private boolean isNoDiscard;
// the scope that the function is in (must be the global scope, no?)
private IScope scope;
@@ -181,4 +182,13 @@ public class C99Function extends PlatformObject implements IC99Binding, IFunctio
public IBinding getOwner() {
return null;
}
+
+ @Override
+ public boolean isNoDiscard() {
+ return isNoDiscard;
+ }
+
+ public void setNoDiscard(boolean isNoDiscard) {
+ this.isNoDiscard = isNoDiscard;
+ }
}

Back to the top