mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
WIP
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
#include "quotearg.h"
|
#include "quotearg.h"
|
||||||
#include "vasnprintf.h"
|
#include "vasnprintf.h"
|
||||||
|
|
||||||
|
#include "complain.h"
|
||||||
#include "files.h"
|
#include "files.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -97,6 +98,13 @@ fixits_run (void)
|
|||||||
if (!fixits)
|
if (!fixits)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!update_flag)
|
||||||
|
{
|
||||||
|
complain (NULL, Wother,
|
||||||
|
_("some fixes can be applied. Rerun with option '--update'."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* This is not unlike what is done in location_caret. */
|
/* This is not unlike what is done in location_caret. */
|
||||||
uniqstr input = ((fixit *) gl_list_get_at (fixits, 0))->location.start.file;
|
uniqstr input = ((fixit *) gl_list_get_at (fixits, 0))->location.start.file;
|
||||||
/* Backup the file. */
|
/* Backup the file. */
|
||||||
|
|||||||
@@ -105,8 +105,7 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
/* Fix input file now, even if there are errors: that's less
|
/* Fix input file now, even if there are errors: that's less
|
||||||
warnings in the following runs. */
|
warnings in the following runs. */
|
||||||
if (update_flag)
|
fixits_run ();
|
||||||
fixits_run ();
|
|
||||||
fixits_free ();
|
fixits_free ();
|
||||||
|
|
||||||
if (complaint_status == status_complaint)
|
if (complaint_status == status_complaint)
|
||||||
|
|||||||
Reference in New Issue
Block a user