37 return path.empty() ?
false :
38 path.back()==
'/' || path.back()==
'\\';
82 compiler.object_file_extension=
"obj";
113 log.warning() <<
"unknown language standard " <<
std_string
141 compiler.output_directory_object.empty())
143 log.error() <<
"output directory required for /c with multiple input files"
159 log.warning() <<
"not a directory: " <<
compiler.output_file_executable
181 std::list<std::string>::iterator it;
183 std::cout <<
"Defines:\n";
188 std::cout <<
" " << (*it) <<
'\n';
191 std::cout <<
"Undefines:\n";
196 std::cout <<
" " << (*it) <<
'\n';
199 std::cout <<
"Preprocessor Options:\n";
204 std::cout <<
" " << (*it) <<
'\n';
207 std::cout <<
"Include Paths:\n";
212 std::cout <<
" " << (*it) <<
'\n';
215 std::cout <<
"Library Paths:\n";
216 for(it=
compiler.library_paths.begin();
220 std::cout <<
" " << (*it) <<
'\n';
223 std::cout <<
"Output file (object): "
224 <<
compiler.output_file_object <<
'\n';
225 std::cout <<
"Output file (executable): "
226 <<
compiler.output_file_executable <<
'\n';
236 std::cout <<
"goto-cl understands the options of CL plus the following.\n\n";
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
std::string get_value(char option) const
virtual bool isset(char option) const
@ COMPILE_LINK_EXECUTABLE
bool set(const cmdlinet &cmdline)
struct configt::ansi_ct ansi_c
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.
cl_message_handlert message_handler
virtual int doit()
does it.
virtual void help_mode()
display command line help
Compile and link source and object files.
bool has_prefix(const std::string &s, const std::string &prefix)
bool is_directory(const std::string &path)
std::string get_base_name(const std::string &in, bool strip_suffix)
cleans a filename from path and extension
static bool has_directory_suffix(const std::string &path)