getargs: add support for --flags/-f

Introduce -fdiagnostics-show-caret

* src/getargs.c (flag_flag): New global.
* src/getargs.h (flag): New enum.
This commit is contained in:
Theophile Ranquet
2012-11-30 14:33:05 +01:00
parent effd30c08d
commit 0db2648930
2 changed files with 50 additions and 2 deletions

View File

@@ -130,6 +130,18 @@ enum warnings
/** What warnings are issued. */
extern int warnings_flag;
/*-------------.
| --features. |
`-------------*/
enum feature
{
feature_none = 0, /**< No additional feature. */
feature_caret = 1 << 0, /**< Enhance the output of errors with carets. */
feature_all = ~0 /**< All above features. */
};
/** What additional features to use. */
extern int feature_flag;
/** Process the command line arguments.
*