26 "--print-rejected-preprocessed-source",
75 for(
int i=1; i<argc; i++)
77 std::string argv_i=argv[i];
90 *o!=
nullptr && !found;
100 set(argv_i, argv[i+1]);
109 set(os, argv_i.substr(os.size()+1));
128 *o!=
nullptr && !found;
138 set(argv_i, argv[i+1]);
148 set(os, argv[i]+os.size());
155 std::cerr <<
"Warning: uninterpreted bcc option '" << argv_i
const char * goto_bcc_options_with_argument[]
const char * bcc_options_with_argument[]
const char * bcc_options_without_argument[]
A special command line object for Bruce's C Compiler Author: Michael Tautschnig Date: July 2016.
void set(const std::string &opt, const char *value) override
Set option option to value.
void add_infile_arg(const std::string &arg)
static bool in_list(const char *option, const char **list)
virtual bool parse(int argc, const char **argv, const char *optstring)
Parses a commandline according to a specification given in optstring.
void add_arg(const std::string &arg)
bool has_prefix(const std::string &s, const std::string &prefix)
#define PRECONDITION(CONDITION)