This PR removes two headers for exceptions from options.h, and instead pushes the includes to a couple of source files.
#include "api/cpp/cvc5_checks.h"
#include "base/check.h"
#include "base/configuration.h"
+#include "base/modal_exception.h"
#include "expr/dtype.h"
#include "expr/dtype_cons.h"
#include "expr/dtype_selector.h"
#include "expr/sequence.h"
#include "expr/type_node.h"
#include "options/main_options.h"
+#include "options/option_exception.h"
#include "options/options.h"
#include "options/smt_options.h"
#include "proof/unsat_core.h"
#include "main/command_executor.h"
#include "main/interactive_shell.h"
#include "options/language.h"
+#include "options/option_exception.h"
#include "options/options.h"
#include "parser/parser.h"
#include "parser/parser_builder.h"
#include <cerrno>
#include <cstring>
+#include "base/exception.h"
#include "signal_handlers.h"
namespace cvc5 {
* expands this template and generates a <module>_options.cpp file.
*/
-#include "options/options_holder.h"
-#include "base/check.h"
-
#include <iostream>
+#include "base/check.h"
+#include "options/option_exception.h"
+#include "options/options_holder.h"
+
// clang-format off
namespace cvc5 {
${accs}$
-
namespace options {
${defs}$
#include "options/open_ostream.h"
-
#include <cerrno>
#include <fstream>
#include <iostream>
#include <utility>
#include "lib/strtok_r.h"
+#include "options/option_exception.h"
#include "options/parser_options.h"
namespace cvc5 {
#include <vector>
#include "base/listener.h"
-#include "base/modal_exception.h"
#include "cvc5_export.h"
#include "options/language.h"
-#include "options/option_exception.h"
#include "options/printer_modes.h"
namespace cvc5 {
#include <sstream>
+#include "base/modal_exception.h"
#include "options/smt_options.h"
#include "smt/smt_engine.h"
#include "theory/quantifiers/quantifiers_attributes.h"
#include <sstream>
+#include "base/modal_exception.h"
#include "expr/node_algorithm.h"
#include "options/base_options.h"
#include "options/expr_options.h"
#include "smt/check_models.h"
+#include "base/modal_exception.h"
#include "options/smt_options.h"
#include "smt/model.h"
#include "smt/node_command.h"
#include "api/cpp/cvc5.h"
#include "base/check.h"
+#include "base/modal_exception.h"
#include "base/output.h"
#include "expr/expr_iomanip.h"
#include "expr/node.h"
#include <sstream>
+#include "base/modal_exception.h"
#include "options/smt_options.h"
#include "smt/smt_engine.h"
#include "theory/quantifiers/quantifiers_attributes.h"
#include "smt/quant_elim_solver.h"
+#include "base/modal_exception.h"
#include "expr/skolem_manager.h"
#include "expr/subs.h"
#include "smt/smt_solver.h"
#include "options/expr_options.h"
#include "options/language.h"
#include "options/main_options.h"
+#include "options/option_exception.h"
#include "options/printer_options.h"
#include "options/proof_options.h"
#include "options/smt_options.h"
#include "smt/smt_engine_state.h"
+#include "base/modal_exception.h"
+#include "options/option_exception.h"
#include "options/smt_options.h"
#include "smt/smt_engine.h"
#include <sstream>
+#include "base/modal_exception.h"
#include "expr/dtype.h"
#include "expr/skolem_manager.h"
+#include "options/option_exception.h"
#include "options/quantifiers_options.h"
#include "options/smt_options.h"
#include "printer/printer.h"
#include <sstream>
+#include "base/modal_exception.h"
#include "expr/dtype.h"
#include "expr/node_algorithm.h"
#include "options/smt_options.h"
#include "base/check.h"
#include "base/listener.h"
#include "base/output.h"
+#include "options/option_exception.h"
#include "options/options.h"
#include "options/smt_options.h"
#include "util/statistics_registry.h"