COMP: Removed warnings about unreachable code and constant control expressions. Added the changes to the instructions in the input lex files.

This commit is contained in:
Brad King 2005-05-03 15:19:34 -04:00
parent bac564356b
commit 4b843d135e
4 changed files with 8 additions and 133 deletions

View File

@ -632,6 +632,8 @@ Modify cmDependsFortranLexer.cxx:
- remove TABs - remove TABs
- remove "yyscanner" argument from these methods: - remove "yyscanner" argument from these methods:
yy_fatal_error, cmDependsFortran_yyalloc, cmDependsFortran_yyrealloc, cmDependsFortran_yyfree yy_fatal_error, cmDependsFortran_yyalloc, cmDependsFortran_yyrealloc, cmDependsFortran_yyfree
- remove all YY_BREAK lines occurring right after return statements
- change while ( 1 ) to for(;;)
Modify cmDependsFortranLexer.h: Modify cmDependsFortranLexer.h:
- remove TABs - remove TABs
@ -934,7 +936,7 @@ YY_DECL
cmDependsFortran_yy_load_buffer_state(yyscanner ); cmDependsFortran_yy_load_buffer_state(yyscanner );
} }
while ( 1 ) /* loops until end-of-file is reached */ for(;;) /* loops until end-of-file is reached */
{ {
yy_cp = yyg->yy_c_buf_p; yy_cp = yyg->yy_c_buf_p;
@ -1015,7 +1017,6 @@ YY_RULE_SETUP
yylvalp->string = strdup(cmDependsFortranParser_StringEnd(yyextra)); yylvalp->string = strdup(cmDependsFortranParser_StringEnd(yyextra));
return STRING; return STRING;
} }
YY_BREAK
case 5: case 5:
/* rule 5 can match eol */ /* rule 5 can match eol */
#line 115 "cmDependsFortranLexer.in.l" #line 115 "cmDependsFortranLexer.in.l"
@ -1040,7 +1041,6 @@ YY_RULE_SETUP
BEGIN(INITIAL); BEGIN(INITIAL);
return UNTERMINATED_STRING; return UNTERMINATED_STRING;
} }
YY_BREAK
case 9: case 9:
YY_RULE_SETUP YY_RULE_SETUP
#line 125 "cmDependsFortranLexer.in.l" #line 125 "cmDependsFortranLexer.in.l"
@ -1053,38 +1053,31 @@ case 10:
YY_RULE_SETUP YY_RULE_SETUP
#line 129 "cmDependsFortranLexer.in.l" #line 129 "cmDependsFortranLexer.in.l"
{ return EOSTMT; } /* Treat comments like */ { return EOSTMT; } /* Treat comments like */
YY_BREAK
case 11: case 11:
/* rule 11 can match eol */ /* rule 11 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 130 "cmDependsFortranLexer.in.l" #line 130 "cmDependsFortranLexer.in.l"
{ return EOSTMT; } /* empty lines */ { return EOSTMT; } /* empty lines */
YY_BREAK
case 12: case 12:
YY_RULE_SETUP YY_RULE_SETUP
#line 132 "cmDependsFortranLexer.in.l" #line 132 "cmDependsFortranLexer.in.l"
{ return CPP_INCLUDE; } { return CPP_INCLUDE; }
YY_BREAK
case 13: case 13:
YY_RULE_SETUP YY_RULE_SETUP
#line 133 "cmDependsFortranLexer.in.l" #line 133 "cmDependsFortranLexer.in.l"
{ return F90PPR_INCLUDE; } { return F90PPR_INCLUDE; }
YY_BREAK
case 14: case 14:
YY_RULE_SETUP YY_RULE_SETUP
#line 134 "cmDependsFortranLexer.in.l" #line 134 "cmDependsFortranLexer.in.l"
{ return COCO_INCLUDE; } { return COCO_INCLUDE; }
YY_BREAK
case 15: case 15:
YY_RULE_SETUP YY_RULE_SETUP
#line 135 "cmDependsFortranLexer.in.l" #line 135 "cmDependsFortranLexer.in.l"
{ return F_INCLUDE; } { return F_INCLUDE; }
YY_BREAK
case 16: case 16:
YY_RULE_SETUP YY_RULE_SETUP
#line 136 "cmDependsFortranLexer.in.l" #line 136 "cmDependsFortranLexer.in.l"
{ return USE; } { return USE; }
YY_BREAK
case 17: case 17:
YY_RULE_SETUP YY_RULE_SETUP
#line 138 "cmDependsFortranLexer.in.l" #line 138 "cmDependsFortranLexer.in.l"
@ -1118,82 +1111,66 @@ case 21:
YY_RULE_SETUP YY_RULE_SETUP
#line 153 "cmDependsFortranLexer.in.l" #line 153 "cmDependsFortranLexer.in.l"
{ return CPP_DEFINE; } { return CPP_DEFINE; }
YY_BREAK
case 22: case 22:
YY_RULE_SETUP YY_RULE_SETUP
#line 154 "cmDependsFortranLexer.in.l" #line 154 "cmDependsFortranLexer.in.l"
{ return F90PPR_DEFINE; } { return F90PPR_DEFINE; }
YY_BREAK
case 23: case 23:
YY_RULE_SETUP YY_RULE_SETUP
#line 156 "cmDependsFortranLexer.in.l" #line 156 "cmDependsFortranLexer.in.l"
{ return CPP_UNDEF; } { return CPP_UNDEF; }
YY_BREAK
case 24: case 24:
YY_RULE_SETUP YY_RULE_SETUP
#line 157 "cmDependsFortranLexer.in.l" #line 157 "cmDependsFortranLexer.in.l"
{ return F90PPR_UNDEF; } { return F90PPR_UNDEF; }
YY_BREAK
case 25: case 25:
YY_RULE_SETUP YY_RULE_SETUP
#line 159 "cmDependsFortranLexer.in.l" #line 159 "cmDependsFortranLexer.in.l"
{ return CPP_IFDEF; } { return CPP_IFDEF; }
YY_BREAK
case 26: case 26:
YY_RULE_SETUP YY_RULE_SETUP
#line 160 "cmDependsFortranLexer.in.l" #line 160 "cmDependsFortranLexer.in.l"
{ return CPP_IFNDEF; } { return CPP_IFNDEF; }
YY_BREAK
case 27: case 27:
YY_RULE_SETUP YY_RULE_SETUP
#line 161 "cmDependsFortranLexer.in.l" #line 161 "cmDependsFortranLexer.in.l"
{ return CPP_IF; } { return CPP_IF; }
YY_BREAK
case 28: case 28:
YY_RULE_SETUP YY_RULE_SETUP
#line 162 "cmDependsFortranLexer.in.l" #line 162 "cmDependsFortranLexer.in.l"
{ return CPP_ELIF; } { return CPP_ELIF; }
YY_BREAK
case 29: case 29:
YY_RULE_SETUP YY_RULE_SETUP
#line 163 "cmDependsFortranLexer.in.l" #line 163 "cmDependsFortranLexer.in.l"
{ return CPP_ELSE; } { return CPP_ELSE; }
YY_BREAK
case 30: case 30:
YY_RULE_SETUP YY_RULE_SETUP
#line 164 "cmDependsFortranLexer.in.l" #line 164 "cmDependsFortranLexer.in.l"
{ return CPP_ENDIF; } { return CPP_ENDIF; }
YY_BREAK
case 31: case 31:
YY_RULE_SETUP YY_RULE_SETUP
#line 166 "cmDependsFortranLexer.in.l" #line 166 "cmDependsFortranLexer.in.l"
{ return F90PPR_IFDEF; } { return F90PPR_IFDEF; }
YY_BREAK
case 32: case 32:
YY_RULE_SETUP YY_RULE_SETUP
#line 167 "cmDependsFortranLexer.in.l" #line 167 "cmDependsFortranLexer.in.l"
{ return F90PPR_IFNDEF; } { return F90PPR_IFNDEF; }
YY_BREAK
case 33: case 33:
YY_RULE_SETUP YY_RULE_SETUP
#line 168 "cmDependsFortranLexer.in.l" #line 168 "cmDependsFortranLexer.in.l"
{ return F90PPR_IF; } { return F90PPR_IF; }
YY_BREAK
case 34: case 34:
YY_RULE_SETUP YY_RULE_SETUP
#line 169 "cmDependsFortranLexer.in.l" #line 169 "cmDependsFortranLexer.in.l"
{ return F90PPR_ELIF; } { return F90PPR_ELIF; }
YY_BREAK
case 35: case 35:
YY_RULE_SETUP YY_RULE_SETUP
#line 170 "cmDependsFortranLexer.in.l" #line 170 "cmDependsFortranLexer.in.l"
{ return F90PPR_ELSE; } { return F90PPR_ELSE; }
YY_BREAK
case 36: case 36:
YY_RULE_SETUP YY_RULE_SETUP
#line 171 "cmDependsFortranLexer.in.l" #line 171 "cmDependsFortranLexer.in.l"
{ return F90PPR_ENDIF; } { return F90PPR_ENDIF; }
YY_BREAK
case 37: case 37:
/* rule 37 can match eol */ /* rule 37 can match eol */
#line 174 "cmDependsFortranLexer.in.l" #line 174 "cmDependsFortranLexer.in.l"
@ -1207,13 +1184,11 @@ case 39:
YY_RULE_SETUP YY_RULE_SETUP
#line 177 "cmDependsFortranLexer.in.l" #line 177 "cmDependsFortranLexer.in.l"
{ yylvalp->string = strdup(yytext); return WORD; } { yylvalp->string = strdup(yytext); return WORD; }
YY_BREAK
case 40: case 40:
/* rule 40 can match eol */ /* rule 40 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 179 "cmDependsFortranLexer.in.l" #line 179 "cmDependsFortranLexer.in.l"
{ return EOSTMT; } { return EOSTMT; }
YY_BREAK
case 41: case 41:
YY_RULE_SETUP YY_RULE_SETUP
#line 181 "cmDependsFortranLexer.in.l" #line 181 "cmDependsFortranLexer.in.l"
@ -1223,7 +1198,6 @@ case 42:
YY_RULE_SETUP YY_RULE_SETUP
#line 183 "cmDependsFortranLexer.in.l" #line 183 "cmDependsFortranLexer.in.l"
{ return *yytext; } { return *yytext; }
YY_BREAK
case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(free_fmt): case YY_STATE_EOF(free_fmt):
case YY_STATE_EOF(fixed_fmt): case YY_STATE_EOF(fixed_fmt):

View File

@ -37,6 +37,8 @@ Modify cmDependsFortranLexer.cxx:
- remove TABs - remove TABs
- remove "yyscanner" argument from these methods: - remove "yyscanner" argument from these methods:
yy_fatal_error, yyalloc, yyrealloc, yyfree yy_fatal_error, yyalloc, yyrealloc, yyfree
- remove all YY_BREAK lines occurring right after return statements
- change while ( 1 ) to for(;;)
Modify cmDependsFortranLexer.h: Modify cmDependsFortranLexer.h:
- remove TABs - remove TABs

View File

@ -665,6 +665,7 @@ Modify cmDependsJavaLexer.c:
- remove "yyscanner" argument from these methods: - remove "yyscanner" argument from these methods:
yy_fatal_error, cmDependsJava_yyalloc, cmDependsJava_yyrealloc, cmDependsJava_yyfree yy_fatal_error, cmDependsJava_yyalloc, cmDependsJava_yyrealloc, cmDependsJava_yyfree
- remove all YY_BREAK lines occurring right after return statements - remove all YY_BREAK lines occurring right after return statements
- change while ( 1 ) to for(;;)
Modify cmDependsJavaLexer.h: Modify cmDependsJavaLexer.h:
- remove TABs - remove TABs
@ -963,7 +964,7 @@ YY_DECL
cmDependsJava_yy_load_buffer_state(yyscanner ); cmDependsJava_yy_load_buffer_state(yyscanner );
} }
while ( 1 ) /* loops until end-of-file is reached */ for(;;) /* loops until end-of-file is reached */
{ {
yy_cp = yyg->yy_c_buf_p; yy_cp = yyg->yy_c_buf_p;
@ -1043,7 +1044,6 @@ case 5:
YY_RULE_SETUP YY_RULE_SETUP
#line 94 "cmDependsJavaLexer.in.l" #line 94 "cmDependsJavaLexer.in.l"
{ BEGIN(INITIAL); return jp_STRINGLITERAL; } { BEGIN(INITIAL); return jp_STRINGLITERAL; }
YY_BREAK
case 6: case 6:
YY_RULE_SETUP YY_RULE_SETUP
#line 95 "cmDependsJavaLexer.in.l" #line 95 "cmDependsJavaLexer.in.l"
@ -1053,503 +1053,403 @@ case 7:
YY_RULE_SETUP YY_RULE_SETUP
#line 97 "cmDependsJavaLexer.in.l" #line 97 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_ABSTRACT; } { KEYWORD; return jp_ABSTRACT; }
YY_BREAK
case 8: case 8:
YY_RULE_SETUP YY_RULE_SETUP
#line 98 "cmDependsJavaLexer.in.l" #line 98 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_ASSERT; } { KEYWORD; return jp_ASSERT; }
YY_BREAK
case 9: case 9:
YY_RULE_SETUP YY_RULE_SETUP
#line 99 "cmDependsJavaLexer.in.l" #line 99 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_BOOLEAN_TYPE; } { KEYWORD; return jp_BOOLEAN_TYPE; }
YY_BREAK
case 10: case 10:
YY_RULE_SETUP YY_RULE_SETUP
#line 100 "cmDependsJavaLexer.in.l" #line 100 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_BREAK; } { KEYWORD; return jp_BREAK; }
YY_BREAK
case 11: case 11:
YY_RULE_SETUP YY_RULE_SETUP
#line 101 "cmDependsJavaLexer.in.l" #line 101 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_BYTE_TYPE; } { KEYWORD; return jp_BYTE_TYPE; }
YY_BREAK
case 12: case 12:
YY_RULE_SETUP YY_RULE_SETUP
#line 102 "cmDependsJavaLexer.in.l" #line 102 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_CASE; } { KEYWORD; return jp_CASE; }
YY_BREAK
case 13: case 13:
YY_RULE_SETUP YY_RULE_SETUP
#line 103 "cmDependsJavaLexer.in.l" #line 103 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_CATCH; } { KEYWORD; return jp_CATCH; }
YY_BREAK
case 14: case 14:
YY_RULE_SETUP YY_RULE_SETUP
#line 104 "cmDependsJavaLexer.in.l" #line 104 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_CHAR_TYPE; } { KEYWORD; return jp_CHAR_TYPE; }
YY_BREAK
case 15: case 15:
YY_RULE_SETUP YY_RULE_SETUP
#line 105 "cmDependsJavaLexer.in.l" #line 105 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_CLASS; } { KEYWORD; return jp_CLASS; }
YY_BREAK
case 16: case 16:
YY_RULE_SETUP YY_RULE_SETUP
#line 106 "cmDependsJavaLexer.in.l" #line 106 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_CONTINUE; } { KEYWORD; return jp_CONTINUE; }
YY_BREAK
case 17: case 17:
YY_RULE_SETUP YY_RULE_SETUP
#line 107 "cmDependsJavaLexer.in.l" #line 107 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_DEFAULT; } { KEYWORD; return jp_DEFAULT; }
YY_BREAK
case 18: case 18:
YY_RULE_SETUP YY_RULE_SETUP
#line 108 "cmDependsJavaLexer.in.l" #line 108 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_DO; } { KEYWORD; return jp_DO; }
YY_BREAK
case 19: case 19:
YY_RULE_SETUP YY_RULE_SETUP
#line 109 "cmDependsJavaLexer.in.l" #line 109 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_DOUBLE_TYPE; } { KEYWORD; return jp_DOUBLE_TYPE; }
YY_BREAK
case 20: case 20:
YY_RULE_SETUP YY_RULE_SETUP
#line 110 "cmDependsJavaLexer.in.l" #line 110 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_ELSE; } { KEYWORD; return jp_ELSE; }
YY_BREAK
case 21: case 21:
YY_RULE_SETUP YY_RULE_SETUP
#line 111 "cmDependsJavaLexer.in.l" #line 111 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_EXTENDS; } { KEYWORD; return jp_EXTENDS; }
YY_BREAK
case 22: case 22:
YY_RULE_SETUP YY_RULE_SETUP
#line 112 "cmDependsJavaLexer.in.l" #line 112 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_FINAL; } { KEYWORD; return jp_FINAL; }
YY_BREAK
case 23: case 23:
YY_RULE_SETUP YY_RULE_SETUP
#line 113 "cmDependsJavaLexer.in.l" #line 113 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_FINALLY; } { KEYWORD; return jp_FINALLY; }
YY_BREAK
case 24: case 24:
YY_RULE_SETUP YY_RULE_SETUP
#line 114 "cmDependsJavaLexer.in.l" #line 114 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_FLOAT_TYPE; } { KEYWORD; return jp_FLOAT_TYPE; }
YY_BREAK
case 25: case 25:
YY_RULE_SETUP YY_RULE_SETUP
#line 115 "cmDependsJavaLexer.in.l" #line 115 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_FOR; } { KEYWORD; return jp_FOR; }
YY_BREAK
case 26: case 26:
YY_RULE_SETUP YY_RULE_SETUP
#line 116 "cmDependsJavaLexer.in.l" #line 116 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_IF; } { KEYWORD; return jp_IF; }
YY_BREAK
case 27: case 27:
YY_RULE_SETUP YY_RULE_SETUP
#line 117 "cmDependsJavaLexer.in.l" #line 117 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_IMPLEMENTS; } { KEYWORD; return jp_IMPLEMENTS; }
YY_BREAK
case 28: case 28:
YY_RULE_SETUP YY_RULE_SETUP
#line 118 "cmDependsJavaLexer.in.l" #line 118 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_IMPORT; } { KEYWORD; return jp_IMPORT; }
YY_BREAK
case 29: case 29:
YY_RULE_SETUP YY_RULE_SETUP
#line 119 "cmDependsJavaLexer.in.l" #line 119 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_INSTANCEOF; } { KEYWORD; return jp_INSTANCEOF; }
YY_BREAK
case 30: case 30:
YY_RULE_SETUP YY_RULE_SETUP
#line 120 "cmDependsJavaLexer.in.l" #line 120 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_INT_TYPE; } { KEYWORD; return jp_INT_TYPE; }
YY_BREAK
case 31: case 31:
YY_RULE_SETUP YY_RULE_SETUP
#line 121 "cmDependsJavaLexer.in.l" #line 121 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_INTERFACE; } { KEYWORD; return jp_INTERFACE; }
YY_BREAK
case 32: case 32:
YY_RULE_SETUP YY_RULE_SETUP
#line 122 "cmDependsJavaLexer.in.l" #line 122 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_LONG_TYPE; } { KEYWORD; return jp_LONG_TYPE; }
YY_BREAK
case 33: case 33:
YY_RULE_SETUP YY_RULE_SETUP
#line 123 "cmDependsJavaLexer.in.l" #line 123 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_NATIVE; } { KEYWORD; return jp_NATIVE; }
YY_BREAK
case 34: case 34:
YY_RULE_SETUP YY_RULE_SETUP
#line 124 "cmDependsJavaLexer.in.l" #line 124 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_NEW; } { KEYWORD; return jp_NEW; }
YY_BREAK
case 35: case 35:
YY_RULE_SETUP YY_RULE_SETUP
#line 125 "cmDependsJavaLexer.in.l" #line 125 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_PACKAGE; } { KEYWORD; return jp_PACKAGE; }
YY_BREAK
case 36: case 36:
YY_RULE_SETUP YY_RULE_SETUP
#line 126 "cmDependsJavaLexer.in.l" #line 126 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_PRIVATE; } { KEYWORD; return jp_PRIVATE; }
YY_BREAK
case 37: case 37:
YY_RULE_SETUP YY_RULE_SETUP
#line 127 "cmDependsJavaLexer.in.l" #line 127 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_PROTECTED; } { KEYWORD; return jp_PROTECTED; }
YY_BREAK
case 38: case 38:
YY_RULE_SETUP YY_RULE_SETUP
#line 128 "cmDependsJavaLexer.in.l" #line 128 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_PUBLIC; } { KEYWORD; return jp_PUBLIC; }
YY_BREAK
case 39: case 39:
YY_RULE_SETUP YY_RULE_SETUP
#line 129 "cmDependsJavaLexer.in.l" #line 129 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_RETURN; } { KEYWORD; return jp_RETURN; }
YY_BREAK
case 40: case 40:
YY_RULE_SETUP YY_RULE_SETUP
#line 130 "cmDependsJavaLexer.in.l" #line 130 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_SHORT_TYPE; } { KEYWORD; return jp_SHORT_TYPE; }
YY_BREAK
case 41: case 41:
YY_RULE_SETUP YY_RULE_SETUP
#line 131 "cmDependsJavaLexer.in.l" #line 131 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_STATIC; } { KEYWORD; return jp_STATIC; }
YY_BREAK
case 42: case 42:
YY_RULE_SETUP YY_RULE_SETUP
#line 132 "cmDependsJavaLexer.in.l" #line 132 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_STRICTFP; } { KEYWORD; return jp_STRICTFP; }
YY_BREAK
case 43: case 43:
YY_RULE_SETUP YY_RULE_SETUP
#line 133 "cmDependsJavaLexer.in.l" #line 133 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_SUPER; } { KEYWORD; return jp_SUPER; }
YY_BREAK
case 44: case 44:
YY_RULE_SETUP YY_RULE_SETUP
#line 134 "cmDependsJavaLexer.in.l" #line 134 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_SWITCH; } { KEYWORD; return jp_SWITCH; }
YY_BREAK
case 45: case 45:
YY_RULE_SETUP YY_RULE_SETUP
#line 135 "cmDependsJavaLexer.in.l" #line 135 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_SYNCHRONIZED; } { KEYWORD; return jp_SYNCHRONIZED; }
YY_BREAK
case 46: case 46:
YY_RULE_SETUP YY_RULE_SETUP
#line 136 "cmDependsJavaLexer.in.l" #line 136 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_THIS; } { KEYWORD; return jp_THIS; }
YY_BREAK
case 47: case 47:
YY_RULE_SETUP YY_RULE_SETUP
#line 137 "cmDependsJavaLexer.in.l" #line 137 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_THROW; } { KEYWORD; return jp_THROW; }
YY_BREAK
case 48: case 48:
YY_RULE_SETUP YY_RULE_SETUP
#line 138 "cmDependsJavaLexer.in.l" #line 138 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_THROWS; } { KEYWORD; return jp_THROWS; }
YY_BREAK
case 49: case 49:
YY_RULE_SETUP YY_RULE_SETUP
#line 139 "cmDependsJavaLexer.in.l" #line 139 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_TRANSIENT; } { KEYWORD; return jp_TRANSIENT; }
YY_BREAK
case 50: case 50:
YY_RULE_SETUP YY_RULE_SETUP
#line 140 "cmDependsJavaLexer.in.l" #line 140 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_TRY; } { KEYWORD; return jp_TRY; }
YY_BREAK
case 51: case 51:
YY_RULE_SETUP YY_RULE_SETUP
#line 141 "cmDependsJavaLexer.in.l" #line 141 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_VOID; } { KEYWORD; return jp_VOID; }
YY_BREAK
case 52: case 52:
YY_RULE_SETUP YY_RULE_SETUP
#line 142 "cmDependsJavaLexer.in.l" #line 142 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_VOLATILE; } { KEYWORD; return jp_VOLATILE; }
YY_BREAK
case 53: case 53:
YY_RULE_SETUP YY_RULE_SETUP
#line 143 "cmDependsJavaLexer.in.l" #line 143 "cmDependsJavaLexer.in.l"
{ KEYWORD; return jp_WHILE; } { KEYWORD; return jp_WHILE; }
YY_BREAK
case 54: case 54:
YY_RULE_SETUP YY_RULE_SETUP
#line 145 "cmDependsJavaLexer.in.l" #line 145 "cmDependsJavaLexer.in.l"
{ PRIMITIVE; return jp_BOOLEANLITERAL; } { PRIMITIVE; return jp_BOOLEANLITERAL; }
YY_BREAK
case 55: case 55:
/* rule 55 can match eol */ /* rule 55 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 146 "cmDependsJavaLexer.in.l" #line 146 "cmDependsJavaLexer.in.l"
{ PRIMITIVE; return jp_CHARACTERLITERAL; } { PRIMITIVE; return jp_CHARACTERLITERAL; }
YY_BREAK
case 56: case 56:
YY_RULE_SETUP YY_RULE_SETUP
#line 147 "cmDependsJavaLexer.in.l" #line 147 "cmDependsJavaLexer.in.l"
{ PRIMITIVE; return jp_DECIMALINTEGERLITERAL; } { PRIMITIVE; return jp_DECIMALINTEGERLITERAL; }
YY_BREAK
case 57: case 57:
YY_RULE_SETUP YY_RULE_SETUP
#line 148 "cmDependsJavaLexer.in.l" #line 148 "cmDependsJavaLexer.in.l"
{ PRIMITIVE; return jp_FLOATINGPOINTLITERAL; } { PRIMITIVE; return jp_FLOATINGPOINTLITERAL; }
YY_BREAK
case 58: case 58:
YY_RULE_SETUP YY_RULE_SETUP
#line 149 "cmDependsJavaLexer.in.l" #line 149 "cmDependsJavaLexer.in.l"
{ PRIMITIVE; return jp_HEXINTEGERLITERAL; } { PRIMITIVE; return jp_HEXINTEGERLITERAL; }
YY_BREAK
case 59: case 59:
YY_RULE_SETUP YY_RULE_SETUP
#line 150 "cmDependsJavaLexer.in.l" #line 150 "cmDependsJavaLexer.in.l"
{ PRIMITIVE; return jp_NULLLITERAL; } { PRIMITIVE; return jp_NULLLITERAL; }
YY_BREAK
case 60: case 60:
YY_RULE_SETUP YY_RULE_SETUP
#line 152 "cmDependsJavaLexer.in.l" #line 152 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_AND; } { SYMBOL; return jp_AND; }
YY_BREAK
case 61: case 61:
YY_RULE_SETUP YY_RULE_SETUP
#line 153 "cmDependsJavaLexer.in.l" #line 153 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_ANDAND; } { SYMBOL; return jp_ANDAND; }
YY_BREAK
case 62: case 62:
YY_RULE_SETUP YY_RULE_SETUP
#line 154 "cmDependsJavaLexer.in.l" #line 154 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_ANDEQUALS; } { SYMBOL; return jp_ANDEQUALS; }
YY_BREAK
case 63: case 63:
YY_RULE_SETUP YY_RULE_SETUP
#line 155 "cmDependsJavaLexer.in.l" #line 155 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_BRACKETEND; } { SYMBOL; return jp_BRACKETEND; }
YY_BREAK
case 64: case 64:
YY_RULE_SETUP YY_RULE_SETUP
#line 156 "cmDependsJavaLexer.in.l" #line 156 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_BRACKETSTART; } { SYMBOL; return jp_BRACKETSTART; }
YY_BREAK
case 65: case 65:
YY_RULE_SETUP YY_RULE_SETUP
#line 157 "cmDependsJavaLexer.in.l" #line 157 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_CARROT; } { SYMBOL; return jp_CARROT; }
YY_BREAK
case 66: case 66:
YY_RULE_SETUP YY_RULE_SETUP
#line 158 "cmDependsJavaLexer.in.l" #line 158 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_CARROTEQUALS; } { SYMBOL; return jp_CARROTEQUALS; }
YY_BREAK
case 67: case 67:
YY_RULE_SETUP YY_RULE_SETUP
#line 159 "cmDependsJavaLexer.in.l" #line 159 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_COLON; } { SYMBOL; return jp_COLON; }
YY_BREAK
case 68: case 68:
YY_RULE_SETUP YY_RULE_SETUP
#line 160 "cmDependsJavaLexer.in.l" #line 160 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_COMMA; } { SYMBOL; return jp_COMMA; }
YY_BREAK
case 69: case 69:
YY_RULE_SETUP YY_RULE_SETUP
#line 161 "cmDependsJavaLexer.in.l" #line 161 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_CURLYEND; } { SYMBOL; return jp_CURLYEND; }
YY_BREAK
case 70: case 70:
YY_RULE_SETUP YY_RULE_SETUP
#line 162 "cmDependsJavaLexer.in.l" #line 162 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_CURLYSTART; } { SYMBOL; return jp_CURLYSTART; }
YY_BREAK
case 71: case 71:
YY_RULE_SETUP YY_RULE_SETUP
#line 163 "cmDependsJavaLexer.in.l" #line 163 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_DIVIDE; } { SYMBOL; return jp_DIVIDE; }
YY_BREAK
case 72: case 72:
YY_RULE_SETUP YY_RULE_SETUP
#line 164 "cmDependsJavaLexer.in.l" #line 164 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_DIVIDEEQUALS; } { SYMBOL; return jp_DIVIDEEQUALS; }
YY_BREAK
case 73: case 73:
YY_RULE_SETUP YY_RULE_SETUP
#line 165 "cmDependsJavaLexer.in.l" #line 165 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_DOLLAR; } { SYMBOL; return jp_DOLLAR; }
YY_BREAK
case 74: case 74:
YY_RULE_SETUP YY_RULE_SETUP
#line 166 "cmDependsJavaLexer.in.l" #line 166 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_DOT; } { SYMBOL; return jp_DOT; }
YY_BREAK
case 75: case 75:
YY_RULE_SETUP YY_RULE_SETUP
#line 167 "cmDependsJavaLexer.in.l" #line 167 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_EQUALS; } { SYMBOL; return jp_EQUALS; }
YY_BREAK
case 76: case 76:
YY_RULE_SETUP YY_RULE_SETUP
#line 168 "cmDependsJavaLexer.in.l" #line 168 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_EQUALSEQUALS; } { SYMBOL; return jp_EQUALSEQUALS; }
YY_BREAK
case 77: case 77:
YY_RULE_SETUP YY_RULE_SETUP
#line 169 "cmDependsJavaLexer.in.l" #line 169 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_EXCLAMATION; } { SYMBOL; return jp_EXCLAMATION; }
YY_BREAK
case 78: case 78:
YY_RULE_SETUP YY_RULE_SETUP
#line 170 "cmDependsJavaLexer.in.l" #line 170 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_EXCLAMATIONEQUALS; } { SYMBOL; return jp_EXCLAMATIONEQUALS; }
YY_BREAK
case 79: case 79:
YY_RULE_SETUP YY_RULE_SETUP
#line 171 "cmDependsJavaLexer.in.l" #line 171 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_GREATER; } { SYMBOL; return jp_GREATER; }
YY_BREAK
case 80: case 80:
YY_RULE_SETUP YY_RULE_SETUP
#line 172 "cmDependsJavaLexer.in.l" #line 172 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_GTEQUALS; } { SYMBOL; return jp_GTEQUALS; }
YY_BREAK
case 81: case 81:
YY_RULE_SETUP YY_RULE_SETUP
#line 173 "cmDependsJavaLexer.in.l" #line 173 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_GTGT; } { SYMBOL; return jp_GTGT; }
YY_BREAK
case 82: case 82:
YY_RULE_SETUP YY_RULE_SETUP
#line 174 "cmDependsJavaLexer.in.l" #line 174 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_GTGTEQUALS; } { SYMBOL; return jp_GTGTEQUALS; }
YY_BREAK
case 83: case 83:
YY_RULE_SETUP YY_RULE_SETUP
#line 175 "cmDependsJavaLexer.in.l" #line 175 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_GTGTGT; } { SYMBOL; return jp_GTGTGT; }
YY_BREAK
case 84: case 84:
YY_RULE_SETUP YY_RULE_SETUP
#line 176 "cmDependsJavaLexer.in.l" #line 176 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_GTGTGTEQUALS; } { SYMBOL; return jp_GTGTGTEQUALS; }
YY_BREAK
case 85: case 85:
YY_RULE_SETUP YY_RULE_SETUP
#line 177 "cmDependsJavaLexer.in.l" #line 177 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_LESLESEQUALS; } { SYMBOL; return jp_LESLESEQUALS; }
YY_BREAK
case 86: case 86:
YY_RULE_SETUP YY_RULE_SETUP
#line 178 "cmDependsJavaLexer.in.l" #line 178 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_LESSTHAN; } { SYMBOL; return jp_LESSTHAN; }
YY_BREAK
case 87: case 87:
YY_RULE_SETUP YY_RULE_SETUP
#line 179 "cmDependsJavaLexer.in.l" #line 179 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_LTEQUALS; } { SYMBOL; return jp_LTEQUALS; }
YY_BREAK
case 88: case 88:
YY_RULE_SETUP YY_RULE_SETUP
#line 180 "cmDependsJavaLexer.in.l" #line 180 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_LTLT; } { SYMBOL; return jp_LTLT; }
YY_BREAK
case 89: case 89:
YY_RULE_SETUP YY_RULE_SETUP
#line 181 "cmDependsJavaLexer.in.l" #line 181 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_MINUS; } { SYMBOL; return jp_MINUS; }
YY_BREAK
case 90: case 90:
YY_RULE_SETUP YY_RULE_SETUP
#line 182 "cmDependsJavaLexer.in.l" #line 182 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_MINUSEQUALS; } { SYMBOL; return jp_MINUSEQUALS; }
YY_BREAK
case 91: case 91:
YY_RULE_SETUP YY_RULE_SETUP
#line 183 "cmDependsJavaLexer.in.l" #line 183 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_MINUSMINUS; } { SYMBOL; return jp_MINUSMINUS; }
YY_BREAK
case 92: case 92:
YY_RULE_SETUP YY_RULE_SETUP
#line 184 "cmDependsJavaLexer.in.l" #line 184 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_PAREEND; } { SYMBOL; return jp_PAREEND; }
YY_BREAK
case 93: case 93:
YY_RULE_SETUP YY_RULE_SETUP
#line 185 "cmDependsJavaLexer.in.l" #line 185 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_PARESTART; } { SYMBOL; return jp_PARESTART; }
YY_BREAK
case 94: case 94:
YY_RULE_SETUP YY_RULE_SETUP
#line 186 "cmDependsJavaLexer.in.l" #line 186 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_PERCENT; } { SYMBOL; return jp_PERCENT; }
YY_BREAK
case 95: case 95:
YY_RULE_SETUP YY_RULE_SETUP
#line 187 "cmDependsJavaLexer.in.l" #line 187 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_PERCENTEQUALS; } { SYMBOL; return jp_PERCENTEQUALS; }
YY_BREAK
case 96: case 96:
YY_RULE_SETUP YY_RULE_SETUP
#line 188 "cmDependsJavaLexer.in.l" #line 188 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_PIPE; } { SYMBOL; return jp_PIPE; }
YY_BREAK
case 97: case 97:
YY_RULE_SETUP YY_RULE_SETUP
#line 189 "cmDependsJavaLexer.in.l" #line 189 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_PIPEEQUALS; } { SYMBOL; return jp_PIPEEQUALS; }
YY_BREAK
case 98: case 98:
YY_RULE_SETUP YY_RULE_SETUP
#line 190 "cmDependsJavaLexer.in.l" #line 190 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_PIPEPIPE; } { SYMBOL; return jp_PIPEPIPE; }
YY_BREAK
case 99: case 99:
YY_RULE_SETUP YY_RULE_SETUP
#line 191 "cmDependsJavaLexer.in.l" #line 191 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_PLUS; } { SYMBOL; return jp_PLUS; }
YY_BREAK
case 100: case 100:
YY_RULE_SETUP YY_RULE_SETUP
#line 192 "cmDependsJavaLexer.in.l" #line 192 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_PLUSEQUALS; } { SYMBOL; return jp_PLUSEQUALS; }
YY_BREAK
case 101: case 101:
YY_RULE_SETUP YY_RULE_SETUP
#line 193 "cmDependsJavaLexer.in.l" #line 193 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_PLUSPLUS; } { SYMBOL; return jp_PLUSPLUS; }
YY_BREAK
case 102: case 102:
YY_RULE_SETUP YY_RULE_SETUP
#line 194 "cmDependsJavaLexer.in.l" #line 194 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_QUESTION; } { SYMBOL; return jp_QUESTION; }
YY_BREAK
case 103: case 103:
YY_RULE_SETUP YY_RULE_SETUP
#line 195 "cmDependsJavaLexer.in.l" #line 195 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_SEMICOL; } { SYMBOL; return jp_SEMICOL; }
YY_BREAK
case 104: case 104:
YY_RULE_SETUP YY_RULE_SETUP
#line 196 "cmDependsJavaLexer.in.l" #line 196 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_TILDE; } { SYMBOL; return jp_TILDE; }
YY_BREAK
case 105: case 105:
YY_RULE_SETUP YY_RULE_SETUP
#line 197 "cmDependsJavaLexer.in.l" #line 197 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_TIMES; } { SYMBOL; return jp_TIMES; }
YY_BREAK
case 106: case 106:
YY_RULE_SETUP YY_RULE_SETUP
#line 198 "cmDependsJavaLexer.in.l" #line 198 "cmDependsJavaLexer.in.l"
{ SYMBOL; return jp_TIMESEQUALS; } { SYMBOL; return jp_TIMESEQUALS; }
YY_BREAK
case 107: case 107:
YY_RULE_SETUP YY_RULE_SETUP
#line 200 "cmDependsJavaLexer.in.l" #line 200 "cmDependsJavaLexer.in.l"
@ -1557,7 +1457,6 @@ YY_RULE_SETUP
yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext)); yyextra->AllocateParserType(yylvalp, yytext, strlen(yytext));
return jp_NAME; return jp_NAME;
} }
YY_BREAK
case 108: case 108:
/* rule 108 can match eol */ /* rule 108 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
@ -1579,7 +1478,6 @@ YY_RULE_SETUP
yyextra->Error("Unknown character"); yyextra->Error("Unknown character");
return jp_ERROR; return jp_ERROR;
} }
YY_BREAK
case 111: case 111:
YY_RULE_SETUP YY_RULE_SETUP
#line 214 "cmDependsJavaLexer.in.l" #line 214 "cmDependsJavaLexer.in.l"

View File

@ -28,6 +28,7 @@ Modify cmDependsJavaLexer.cxx:
- remove "yyscanner" argument from these methods: - remove "yyscanner" argument from these methods:
yy_fatal_error, yyalloc, yyrealloc, yyfree yy_fatal_error, yyalloc, yyrealloc, yyfree
- remove all YY_BREAK lines occurring right after return statements - remove all YY_BREAK lines occurring right after return statements
- change while ( 1 ) to for(;;)
Modify cmDependsJavaLexer.h: Modify cmDependsJavaLexer.h:
- remove TABs - remove TABs