diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2018-03-21 15:48:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-21 15:48:57 -0700 |
commit | bdba2bf65eb2f68daa1a5e488c4e50f5dac1b312 (patch) | |
tree | 3f97efe21f089d3abb5d9a2b53c0c7ee63ba06bb /src/options/base_options_template.h | |
parent | 966960b424aa5901a03abbfaa1bcdac6e3ed90dc (diff) |
Refactor mkoptions (#1631)
This commit refactors code generation for options. It uses a new configuration format for defining options (*.toml) and a new Python script mkoptions.py to generate the source code and option documentation.
The option behavior did not change for most of the options, except that for bool --enable-/--disable- long options enable/disable was removed. E.g. --enable-miplib-trick and --disable-miplib-trick got changed to --miplib-trick and --no-miplib-trick.
This commit fixes also an issues with set-option/get-option via the SMT2 interface. Before long options were only accessible if the name included the =ARG part.
Diffstat (limited to 'src/options/base_options_template.h')
-rw-r--r-- | src/options/base_options_template.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/options/base_options_template.h b/src/options/base_options_template.h deleted file mode 100644 index 8fe3a390f..000000000 --- a/src/options/base_options_template.h +++ /dev/null @@ -1,55 +0,0 @@ -/********************* */ -/*! \file base_options_template.h - ** \verbatim - ** Top contributors (to current version): - ** Morgan Deters, Paul Meng, Tim King - ** This file is part of the CVC4 project. - ** Copyright (c) 2009-2017 by the authors listed in the file AUTHORS - ** in the top-level source directory) and their institutional affiliations. - ** All rights reserved. See the file COPYING in the top-level source - ** directory for licensing information.\endverbatim - ** - ** \brief Contains code for handling command-line options. - ** - ** Contains code for handling command-line options - **/ - -#include "cvc4_private.h" - -#ifndef __CVC4__OPTIONS__${module_id}_H -#define __CVC4__OPTIONS__${module_id}_H - -#include "options/options.h" -${module_includes} - -#line 26 "${template}" - -${module_optionholder_spec} - -#line 30 "${template}" - -namespace CVC4 { - -namespace options { - -${module_decls} - -#line 38 "${template}" - -}/* CVC4::options namespace */ - -${module_specializations} - -#line 44 "${template}" - -namespace options { - -${module_inlines} - -#line 50 "${template}" - -}/* CVC4::options namespace */ - -}/* CVC4 namespace */ - -#endif /* __CVC4__OPTIONS__${module_id}_H */ |