Go to the documentation of this file.
25 "--print-rejected-preprocessed-source",
74 for(
int i=1; i<argc; i++)
76 std::string argv_i=argv[i];
89 *o!=
nullptr && !found;
99 set(argv_i, argv[i+1]);
108 set(os, argv_i.substr(os.size()+1));
127 *o!=
nullptr && !found;
137 set(argv_i, argv[i+1]);
147 set(os, argv[i]+os.size());
154 std::cerr <<
"Warning: uninterpreted bcc option '" << argv_i
void set(const std::string &opt, const char *value) override
Set option option to value.
const char * bcc_options_without_argument[]
A special command line object for Bruce's C Compiler Author: Michael Tautschnig Date: July 2016.
const char * bcc_options_with_argument[]
bool has_prefix(const std::string &s, const std::string &prefix)
virtual bool parse(int argc, const char **argv, const char *optstring)
Parses a commandline according to a specification given in optstring.
void add_infile_arg(const std::string &arg)
void add_arg(const std::string &arg)
const char * goto_bcc_options_with_argument[]
static bool in_list(const char *option, const char **list)