CBMC
free_form_cmdline.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Unit test utilities
4 
5 Author: Diffblue Limited.
6 
7 \*******************************************************************/
8 
9 #ifndef CPROVER_TESTING_UTILS_FREE_FORM_CMDLINE_H
10 #define CPROVER_TESTING_UTILS_FREE_FORM_CMDLINE_H
11 
12 #include <util/cmdline.h>
13 
18 {
19 public:
20  void add_flag(std::string flag);
21  void add_option(std::string flag, std::string value);
22 
23 private:
24  void create_flag(const std::string &flag_name);
25 };
26 
27 #endif // CPROVER_TESTING_UTILS_FREE_FORM_CMDLINE_H
An implementation of cmdlinet to be used in tests.
void create_flag(const std::string &flag_name)
Create a command line option that can be set.
void add_flag(std::string flag)
Equivalent to specifying –flag for the command line.
void add_option(std::string flag, std::string value)
Equivalent to specifying –flag value.