mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
LexerParser: Manual removing code from Bison is no longer needed
This was needed to avoid warnings while compiling the sources generated by older versions of GNU Bison, but is not with GNU Bison 3.7.4.
This commit is contained in:
committed by
Brad King
parent
5a8a61a798
commit
c95442b9b1
@@ -9,9 +9,6 @@ Run bison like this:
|
||||
|
||||
bison --name-prefix=cmCommandArgument_yy --defines=cmCommandArgumentParserTokens.h -ocmCommandArgumentParser.cxx cmCommandArgumentParser.y
|
||||
|
||||
Modify cmCommandArgumentParser.cxx:
|
||||
- "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"]
|
||||
|
||||
*/
|
||||
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
@@ -9,9 +9,6 @@ Run bison like this:
|
||||
|
||||
bison --name-prefix=cmDependsJava_yy --defines=cmDependsJavaParserTokens.h -ocmDependsJavaParser.cxx cmDependsJavaParser.y
|
||||
|
||||
Modify cmDependsJavaParser.cxx:
|
||||
- "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"]
|
||||
|
||||
*/
|
||||
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
@@ -9,9 +9,6 @@ Run bison like this:
|
||||
|
||||
bison --name-prefix=cmExpr_yy --defines=cmExprParserTokens.h -ocmExprParser.cxx cmExprParser.y
|
||||
|
||||
Modify cmExprParser.cxx:
|
||||
- "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"]
|
||||
|
||||
*/
|
||||
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
@@ -22,8 +22,6 @@ Run bison like this:
|
||||
-ocmFortranParser.cxx
|
||||
cmFortranParser.y
|
||||
|
||||
Modify cmFortranParser.cxx:
|
||||
- "#if 0" out yyerrorlab block in range ["goto yyerrlab1", "yyerrlab1:"]
|
||||
*/
|
||||
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
@@ -23,11 +23,6 @@ do
|
||||
if [[ (${in_file} -nt ${cxx_file}) || (${in_file} -nt ${h_file}) || (${forced} -gt 0) ]]; then
|
||||
echo "Generating Parser ${parser}"
|
||||
bison --name-prefix=${prefix} --defines=${h_file} -o${cxx_file} ${in_file}
|
||||
sed -i '/\/\* Else will try to reuse/ i\
|
||||
#if 0
|
||||
/^yyerrlab1:/ a\
|
||||
#endif
|
||||
' ${cxx_file}
|
||||
else
|
||||
echo "Skipped generating Parser ${parser}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user