SonarOpenCommunity / sonar-cxx

Multiple variables declared on the same line JAVA-C1003
Style
Major
5 months agoa year old
64  }
65
66  private enum MyPunctuatorAndOperator implements TokenType {
67    STAR("*"), COLON(","), EQUAL("="), EQUAL_OP("=="), MUL_ASSIGN("*="), NOT_EQUAL("!=");68
69    private final String value;
70
 96    STRUCT("struct"),
 97    INT("int"), VOID("void"),
 98    RETURN("return"), IF("if"), ELSE("else"), WHILE("while"),
 99    CONTINUE("continue"), BREAK("break");100
101    private final String value;
102
 95
 96    STRUCT("struct"),
 97    INT("int"), VOID("void"),
 98    RETURN("return"), IF("if"), ELSE("else"), WHILE("while"), 99    CONTINUE("continue"), BREAK("break");
100
101    private final String value;
 94  public static enum Keywords implements TokenType {
 95
 96    STRUCT("struct"),
 97    INT("int"), VOID("void"), 98    RETURN("return"), IF("if"), ELSE("else"), WHILE("while"),
 99    CONTINUE("continue"), BREAK("break");
100
 65    EQ("="), COMMA(","), SEMICOLON(";"),
 66    ADD("+"), SUB("-"), MUL("*"), DIV("/"),
 67    EQEQ("=="), NE("!="), LT("<"), LTE("<="), GT(">"), GTE(">="),
 68    INC("++"), DEC("--"), 69    HASH("#");
 70
 71    private final String value;