/*
 * This file is released under terms of BSD license
 * See LICENSE file for more information
 */

package cx2x.translator.language.helper.accelerator;

/**
 * OpenMP specific accelerator directive generator.
 *
 * TODO all
 *
 * @author clementval
 */
class OpenMp extends AcceleratorGenerator {

  @Override
  protected String getPrefix(){
    return "";
  }

  @Override
  protected String getStartParellelDirective() {
    return "";
  }

  @Override
  public String getEndParellelDirective() {
    return "";
  }

  @Override
  public String getSingleDirective(String clause) {
    return "";
  }

  @Override
  protected String getParallelKeyword() {
    return "";
  }

  @Override
  protected String getPrivateClause(String var) {
    return "";
  }

  @Override
  public boolean isCompileGuard(String rawDirective){
    return false; // TODO
  }

  @Override
  public AcceleratorDirective getTarget(){
    return AcceleratorDirective.OPENACC;
  }
}

@@ -293,16 +293,70 @@
 ator %7B%0A%0A
+  private static final String OPENMP_PREFIX = %22omp%22;%0A%0A
   @Overr
@@ -889,22 +889,123 @@
 urn 
-false; // TODO
+rawDirective.toLowerCase().startsWith(OPENMP_PREFIX) &&%0A        rawDirective.toLowerCase().contains(COMPILE_GUARD);
 %0A  %7D

Implement isCompileGuard()