Package org.sonar.cxx

Examples of org.sonar.cxx.CxxConfiguration


    assertThat(tokens).hasSize(1); // EOF
  }

  @Test
  public void externalMacrosCannotBeOverriden() {
    CxxConfiguration conf = mock(CxxConfiguration.class);
    when(conf.getDefines()).thenReturn(Arrays.asList("name goodvalue"));
    CxxPreprocessor cxxpp = new CxxPreprocessor(mock(SquidAstVisitorContext.class), conf);
    lexer = CxxLexer.create(conf, cxxpp);

    List<Token> tokens = lexer.lex("#define name badvalue\n"
      + "name");
View Full Code Here


    return cxxpp.getMissingIncludeFiles(path);
  }
 
  public static Parser<Grammar> create() {
    return create(new SquidAstVisitorContextImpl<Grammar>(new SourceProject("")),
                  new CxxConfiguration());
  }
View Full Code Here

    return create(new SquidAstVisitorContextImpl<Grammar>(new SourceProject("")),
                  new CxxConfiguration());
  }

  public static Parser<Grammar> create(SquidAstVisitorContext<Grammar> context) {
    return create(context, new CxxConfiguration());
  }
View Full Code Here

  private CppLexer() {
  }

  public static Lexer create() {
    return create(new CxxConfiguration());
  }
View Full Code Here

  private IncludeLexer() {
  }

  public static Lexer create(Preprocessor... preprocessors) {
    return create(new CxxConfiguration(), preprocessors);
  }
View Full Code Here

  // state which is not shared between files
  private State state = new State(null);
  private Stack<State> stateStack = new Stack<State>();

  public CxxPreprocessor(SquidAstVisitorContext<Grammar> context) {
    this(context, new CxxConfiguration());
  }
View Full Code Here

  private CxxLexer() {
  }

  public static Lexer create(Preprocessor... preprocessors) {
    return create(new CxxConfiguration(), preprocessors);
  }
View Full Code Here

TOP

Related Classes of org.sonar.cxx.CxxConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.