Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/upc
diff options
context:
space:
mode:
authorMike Kucera2007-06-11 14:55:07 +0000
committerMike Kucera2007-06-11 14:55:07 +0000
commita7a62dd7d00a28ffab837fd0147e54551990ac29 (patch)
treeecb34387244e533b9b54c1b5f04edfed25abbbfd /upc
parent7f4dce4f497c7fa23a4cfce6bf594143c1049c48 (diff)
downloadorg.eclipse.cdt-a7a62dd7d00a28ffab837fd0147e54551990ac29.tar.gz
org.eclipse.cdt-a7a62dd7d00a28ffab837fd0147e54551990ac29.tar.xz
org.eclipse.cdt-a7a62dd7d00a28ffab837fd0147e54551990ac29.zip
added preprocessor configurations, gcc attributes now supported as macros
Diffstat (limited to 'upc')
-rw-r--r--upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/upc/UPCLanguage.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/upc/UPCLanguage.java b/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/upc/UPCLanguage.java
index 979a06e1a2a..17b751ca622 100644
--- a/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/upc/UPCLanguage.java
+++ b/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/upc/UPCLanguage.java
@@ -11,6 +11,7 @@
package org.eclipse.cdt.core.dom.upc;
import org.eclipse.cdt.core.dom.c99.C99Language;
+import org.eclipse.cdt.core.dom.c99.IKeywordMap;
import org.eclipse.cdt.core.dom.c99.IParser;
import org.eclipse.cdt.core.dom.parser.c99.C99KeywordMap;
import org.eclipse.cdt.core.dom.parser.upc.UPCKeywordMap;
@@ -31,8 +32,12 @@ public class UPCLanguage extends C99Language {
public static final String ID = PLUGIN_ID + ".upc"; //$NON-NLS-1$
private static UPCKeywordMap keywordMap = new UPCKeywordMap();
+ private static final UPCLanguage myDefault = new UPCLanguage();
+ public static C99Language getDefault() {
+ return myDefault;
+ }
public String getId() {
return ID;
@@ -44,11 +49,11 @@ public class UPCLanguage extends C99Language {
}
- protected IParser getParser() {
+ public IParser getParser() {
return new UPCParser();
}
- public C99KeywordMap getKeywordMap() {
+ public IKeywordMap getKeywordMap() {
return keywordMap;
}

Back to the top