Skip to content

Commit 7051848

Browse files
committed
Add c object factory parameters
1 parent 084c037 commit 7051848

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

src/ansi-c/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ SRC = anonymous_member.cpp \
1313
builtin_factory.cpp \
1414
c_misc.cpp \
1515
c_nondet_symbol_factory.cpp \
16+
c_object_factory_parameters.cpp \
1617
c_preprocess.cpp \
1718
c_qualifiers.cpp \
1819
c_storage_spec.cpp \
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*******************************************************************\
2+
3+
Module:
4+
5+
Author: Daniel Poetzl
6+
7+
\*******************************************************************/
8+
9+
#include "c_object_factory_parameters.h"
10+
11+
void parse_c_object_factory_options(const cmdlinet &cmdline, optionst &options)
12+
{
13+
parse_object_factory_options(cmdline, options);
14+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*******************************************************************\
2+
3+
Module:
4+
5+
Author: Daniel Poetzl
6+
7+
\*******************************************************************/
8+
9+
#ifndef CPROVER_ANSI_C_C_OBJECT_FACTORY_PARAMETERS_H
10+
#define CPROVER_ANSI_C_C_OBJECT_FACTORY_PARAMETERS_H
11+
12+
#include <util/object_factory_parameters.h>
13+
14+
struct c_object_factory_parameterst final : public object_factory_parameterst
15+
{
16+
c_object_factory_parameterst()
17+
{
18+
}
19+
20+
explicit c_object_factory_parameterst(const optionst &options)
21+
: object_factory_parameterst(options)
22+
{
23+
}
24+
};
25+
26+
/// Parse the c object factory parameters from a given command line
27+
/// \param cmdline Command line
28+
/// \param [out] options The options object that will be updated
29+
void parse_c_object_factory_options(const cmdlinet &cmdline, optionst &options);
30+
31+
#endif

0 commit comments

Comments
 (0)