diff options
author | Christoph GrĂ¼ninger <foss@grueninger.de> | 2021-01-22 14:00:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-25 17:05:36 (GMT) |
commit | c95442b9b143b8fcd9af5831f1562f447302ef10 (patch) | |
tree | 14769b36df6662da5fdbe8af8af0c60bc07beda2 | |
parent | 5a8a61a798c8ab915ec3cb0b05e108a0d5266254 (diff) | |
download | CMake-c95442b9b143b8fcd9af5831f1562f447302ef10.zip CMake-c95442b9b143b8fcd9af5831f1562f447302ef10.tar.gz CMake-c95442b9b143b8fcd9af5831f1562f447302ef10.tar.bz2 |
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.
-rw-r--r-- | Source/LexerParser/cmCommandArgumentParser.y | 3 | ||||
-rw-r--r-- | Source/LexerParser/cmDependsJavaParser.y | 3 | ||||
-rw-r--r-- | Source/LexerParser/cmExprParser.y | 3 | ||||
-rw-r--r-- | Source/LexerParser/cmFortranParser.y | 2 | ||||
-rwxr-xr-x | Utilities/Scripts/regenerate-parsers.bash | 5 |
5 files changed, 0 insertions, 16 deletions
diff --git a/Source/LexerParser/cmCommandArgumentParser.y b/Source/LexerParser/cmCommandArgumentParser.y index 1725b35..12aff18 100644 --- a/Source/LexerParser/cmCommandArgumentParser.y +++ b/Source/LexerParser/cmCommandArgumentParser.y @@ -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 diff --git a/Source/LexerParser/cmDependsJavaParser.y b/Source/LexerParser/cmDependsJavaParser.y index fbe1514..45e1e57 100644 --- a/Source/LexerParser/cmDependsJavaParser.y +++ b/Source/LexerParser/cmDependsJavaParser.y @@ -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 diff --git a/Source/LexerParser/cmExprParser.y b/Source/LexerParser/cmExprParser.y index c5f3e76..eadd3f4 100644 --- a/Source/LexerParser/cmExprParser.y +++ b/Source/LexerParser/cmExprParser.y @@ -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 diff --git a/Source/LexerParser/cmFortranParser.y b/Source/LexerParser/cmFortranParser.y index 6bbea39..6dd27bf 100644 --- a/Source/LexerParser/cmFortranParser.y +++ b/Source/LexerParser/cmFortranParser.y @@ -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 diff --git a/Utilities/Scripts/regenerate-parsers.bash b/Utilities/Scripts/regenerate-parsers.bash index 964ed0e..33b59f7 100755 --- a/Utilities/Scripts/regenerate-parsers.bash +++ b/Utilities/Scripts/regenerate-parsers.bash @@ -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 |