mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
doc: -fcaret is enabled by default
* doc/bison.texi (Mid-Rule Action Translation): So no need to pass it.
This commit is contained in:
@@ -4262,7 +4262,7 @@ final action does not use @code{$3}). Bison reports these errors when the
|
|||||||
Bison}):
|
Bison}):
|
||||||
|
|
||||||
@example
|
@example
|
||||||
$ bison -fcaret -Wmidrule-value mid.y
|
$ bison -Wmidrule-value mid.y
|
||||||
@group
|
@group
|
||||||
mid.y:2.6-13: warning: unset value: $$
|
mid.y:2.6-13: warning: unset value: $$
|
||||||
exp: @{ a(); @} "b" @{ $$ = c(); @} @{ d(); @} "e" @{ f = $1; @};
|
exp: @{ a(); @} "b" @{ $$ = c(); @} @{ d(); @} "e" @{ f = $1; @};
|
||||||
@@ -10141,10 +10141,11 @@ Activate miscellaneous @var{feature}. @var{feature} can be one of:
|
|||||||
@item caret
|
@item caret
|
||||||
@itemx diagnostics-show-caret
|
@itemx diagnostics-show-caret
|
||||||
Show caret errors, in a manner similar to GCC's
|
Show caret errors, in a manner similar to GCC's
|
||||||
@option{-fdiagnostics-show-caret}, or Clang's @option{-fcaret-diagnotics}. The
|
@option{-fdiagnostics-show-caret}, or Clang's
|
||||||
location provided with the message is used to quote the corresponding line of
|
@option{-fcaret-diagnotics}. The location provided with the message is used
|
||||||
the source file, underlining the important part of it with carets (^). Here is
|
to quote the corresponding line of the source file, underlining the
|
||||||
an example, using the following file @file{in.y}:
|
important part of it with carets (@samp{^}). Here is an example, using the
|
||||||
|
following file @file{in.y}:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
%type <ival> exp
|
%type <ival> exp
|
||||||
|
|||||||
Reference in New Issue
Block a user