Commit 72a166b
committed
gql: suppress -Wextra warnings in generated ANTLR parser
The generated GQLParser.cpp carries Sempred methods whose _localctx
parameter is unused (they delegate to precpred(_ctx, ...)). Under the
parent repo's CI (ENABLE_WERROR=1 / -Werror) these produced
-Werror=unused-parameter build failures for the gql extension.
Mirror how the parent handles its generated ANTLR code (cypher_parser
is silenced by -Wno-extra in third_party/CMakeLists.txt): disable
-Wextra-only warnings for the generated parser/lexer/visitor OBJECT
target. Hand-written gql code is unaffected; -no-visitor/-no-listener
does not help since Sempred methods are always generated.
Also vendor the Apache-2.0 opengql/grammar (GQL.g4 @ 1.9.0) under
third_party/opengql so scripts/generate_gql_grammar.cmake works from a
fresh clone and the grammar revision is pinned. Regeneration from the
vendored grammar is byte-identical to the checked-in generated files.1 parent e51e3ed commit 72a166b
4 files changed
Lines changed: 4065 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
8 | 20 | | |
9 | 21 | | |
10 | 22 | | |
0 commit comments