From 1540e984279d25e5a83894216c3610990528b95c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 17 Apr 2019 22:41:20 +0300 Subject: Add override options to bdep-ci Namely the options are: --override, --overrides-file, --builds and --build-email. --- bdep/ci-parsers.hxx | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 bdep/ci-parsers.hxx (limited to 'bdep/ci-parsers.hxx') diff --git a/bdep/ci-parsers.hxx b/bdep/ci-parsers.hxx new file mode 100644 index 0000000..5a8f664 --- /dev/null +++ b/bdep/ci-parsers.hxx @@ -0,0 +1,36 @@ +// file : bdep/ci-parsers.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +// CLI parsers, included into the generated source files. +// + +#ifndef BDEP_CI_PARSERS_HXX +#define BDEP_CI_PARSERS_HXX + +#include + +namespace bdep +{ + namespace cli + { + class scanner; + + template + struct parser; + + // Accumulate package manifest override values from all the override- + // related options (--override, --overrides-file, etc), preserving their + // order. Translate each option into one or more values according to the + // option-specific semantics. + // + template <> + struct parser + { + static void + parse (ci_override&, bool&, scanner&); + }; + } +} + +#endif // BDEP_CI_PARSERS_HXX -- cgit v1.1