From 623685a2760b28af94bb8ec9ae30e0882354386b Mon Sep 17 00:00:00 2001 From: Mike Kucera Date: Fri, 13 Jul 2007 18:59:22 +0000 Subject: [PATCH] Bug 189792 - [UPC Parser] template proposals for upc_forall --- .../plugin.xml | 8 +++- .../core/dom/parser/upc/UPCKeywordMap.java | 2 +- .../templates/default-templates.properties | 14 +++++++ .../templates/default-templates.xml | 42 +++++++++++++++++++ 4 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 upc/org.eclipse.cdt.core.parser.upc/templates/default-templates.properties create mode 100644 upc/org.eclipse.cdt.core.parser.upc/templates/default-templates.xml diff --git a/upc/org.eclipse.cdt.core.parser.upc/plugin.xml b/upc/org.eclipse.cdt.core.parser.upc/plugin.xml index d7145fcf911..98703b78a5b 100644 --- a/upc/org.eclipse.cdt.core.parser.upc/plugin.xml +++ b/upc/org.eclipse.cdt.core.parser.upc/plugin.xml @@ -21,6 +21,12 @@ class="org.eclipse.cdt.internal.core.pdom.dom.c.PDOMCLinkageFactory" id="upc"/> - + + + + + diff --git a/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/parser/upc/UPCKeywordMap.java b/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/parser/upc/UPCKeywordMap.java index 56502b8d788..ab032f883bf 100644 --- a/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/parser/upc/UPCKeywordMap.java +++ b/upc/org.eclipse.cdt.core.parser.upc/src/org/eclipse/cdt/core/dom/parser/upc/UPCKeywordMap.java @@ -27,7 +27,7 @@ public class UPCKeywordMap extends C99KeywordMap { public static final String MYTHREAD = "MYTHREAD",//$NON-NLS-1$ THREADS = "THREADS",//$NON-NLS-1$ - UPC_MAX_BLOCKSIZE = "UPC",//$NON-NLS-1$ + UPC_MAX_BLOCKSIZE = "UPC_MAX_BLOCKSIZE",//$NON-NLS-1$ relaxed = "relaxed",//$NON-NLS-1$ shared = "shared",//$NON-NLS-1$ strict = "strict",//$NON-NLS-1$ diff --git a/upc/org.eclipse.cdt.core.parser.upc/templates/default-templates.properties b/upc/org.eclipse.cdt.core.parser.upc/templates/default-templates.properties new file mode 100644 index 00000000000..a6b7229f61c --- /dev/null +++ b/upc/org.eclipse.cdt.core.parser.upc/templates/default-templates.properties @@ -0,0 +1,14 @@ +############################################################################### +# Copyright (c) 2007 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 +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# IBM Corporation - initial API and implementation +############################################################################### + + +forallLoop = upc_forall loop +upcMaxBlocksize = UPC_MAX_BLOCKSIZE keyword diff --git a/upc/org.eclipse.cdt.core.parser.upc/templates/default-templates.xml b/upc/org.eclipse.cdt.core.parser.upc/templates/default-templates.xml new file mode 100644 index 00000000000..65117135fd0 --- /dev/null +++ b/upc/org.eclipse.cdt.core.parser.upc/templates/default-templates.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + \ No newline at end of file