17 #define EX_SOFTWARE 70 79 const std::list<std::string> &values=
82 for(std::list<std::string>::const_iterator
91 const std::list<std::string> &values=
94 for(std::list<std::string>::const_iterator
103 compiler.object_file_extension=
106 compiler.object_file_extension=
"o";
129 compiler.output_file_object=
"";
130 compiler.output_file_executable=
"a.out";
135 std::list<std::string>::iterator it;
137 std::cout <<
"Defines:\n";
142 std::cout <<
" " << (*it) <<
'\n';
145 std::cout <<
"Undefines:\n";
150 std::cout <<
" " << (*it) <<
'\n';
153 std::cout <<
"Preprocessor Options:\n";
158 std::cout <<
" " << (*it) <<
'\n';
161 std::cout <<
"Include Paths:\n";
166 std::cout <<
" " << (*it) <<
'\n';
169 std::cout <<
"Library Paths:\n";
170 for(it=compiler.library_paths.begin();
171 it!=compiler.library_paths.end();
174 std::cout <<
" " << (*it) <<
'\n';
177 std::cout <<
"Output file (object): " 178 << compiler.output_file_object <<
'\n';
179 std::cout <<
"Output file (executable): " 180 << compiler.output_file_executable <<
'\n';
184 return compiler.doit() ? EX_USAGE : EX_OK;
190 std::cout <<
"goto-armcc understands the options " 191 <<
"of armcc plus the following.\n\n";
const std::list< std::string > & get_values(const std::string &option) const
struct configt::ansi_ct ansi_c
gcc_message_handlert message_handler
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...
std::list< std::string > defines
std::string get_value(char option) const
std::list< std::string > undefines
bool set(const cmdlinet &cmdline)
virtual bool isset(char option) const
Base class for command line interpretation for CL.
bool has_prefix(const std::string &s, const std::string &prefix)
std::size_t wchar_t_width
Compile and link source and object files.
virtual void help()
display command line help
std::list< std::string > preprocessor_options
void help_mode() final
display command line help
const std::string base_name
std::list< std::string > include_paths