85 const std::list<std::string> &values=
88 for(std::list<std::string>::const_iterator
97 const std::list<std::string> &values=
100 for(std::list<std::string>::const_iterator
104 config.
ansi_c.preprocessor_options.push_back(
"--preinclude="+*it);
133 compiler.output_file_executable=
"a.out";
138 std::list<std::string>::iterator it;
140 std::cout <<
"Defines:\n";
145 std::cout <<
" " << (*it) <<
'\n';
148 std::cout <<
"Undefines:\n";
153 std::cout <<
" " << (*it) <<
'\n';
156 std::cout <<
"Preprocessor Options:\n";
161 std::cout <<
" " << (*it) <<
'\n';
164 std::cout <<
"Include Paths:\n";
169 std::cout <<
" " << (*it) <<
'\n';
172 std::cout <<
"Library Paths:\n";
173 for(it=
compiler.library_paths.begin();
177 std::cout <<
" " << (*it) <<
'\n';
180 std::cout <<
"Output file (object): "
181 <<
compiler.output_file_object <<
'\n';
182 std::cout <<
"Output file (executable): "
183 <<
compiler.output_file_executable <<
'\n';
193 std::cout <<
"goto-armcc understands the options "
194 <<
"of armcc plus the following.\n\n";
Base class for command line interpretation for CL.
virtual void clear()
Reset the abstract state.
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
gcc_message_handlert message_handler
void help_mode() final
display command line help
std::string get_value(char option) const
virtual bool isset(char option) const
std::optional< std::string > value_opt(char option) const
const std::list< std::string > & get_values(const std::string &option) const
@ COMPILE_LINK_EXECUTABLE
bool set(const cmdlinet &cmdline)
struct configt::ansi_ct ansi_c
void print_warnings_as_errors(bool yes)
With yes set to true, prefix warnings with "error:" instead of "warning:".
const std::string base_name
void help()
display command line help
Class that provides messages with a built-in verbosity 'level'.
static unsigned eval_verbosity(const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest.
Compile and link source and object files.
bool has_prefix(const std::string &s, const std::string &prefix)