CBMC
gcc_cmdline.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: A special command line object for the gcc-like options
4 
5 Author: CM Wintersteiger
6 
7 Date: June 2006
8 
9 \*******************************************************************/
10 
13 
14 #ifndef CPROVER_GOTO_CC_GCC_CMDLINE_H
15 #define CPROVER_GOTO_CC_GCC_CMDLINE_H
16 
17 #include "goto_cc_cmdline.h"
18 
20 {
21 public:
22  // overload
23  virtual bool parse(int, const char**);
24 
26  {
27  }
28 
29 protected:
30  typedef std::vector<std::string> argst;
31 
32  bool parse_arguments(const argst &args_to_parse, bool in_spec_file);
33  void parse_specs();
34  void parse_specs_line(const std::string &line, bool in_spec_file);
35 };
36 
37 #endif // CPROVER_GOTO_CC_GCC_CMDLINE_H
bool parse_arguments(const argst &args_to_parse, bool in_spec_file)
void parse_specs()
Parse GCC spec files https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html.
std::vector< std::string > argst
Definition: gcc_cmdline.h:30
void parse_specs_line(const std::string &line, bool in_spec_file)
Parse GCC spec files https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html.
virtual bool parse(int argc, const char **argv, const char *optstring)
Parses a commandline according to a specification given in optstring.
Definition: cmdline.cpp:153
Command line interpretation for goto-cc.