diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-08 14:51:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-27 11:38:53 +0300 |
commit | 720c5a33b6a49cf328fdd7611f49153cf8f60247 (patch) | |
tree | 9725f3d1f42ec90fde84520f49647edea013ce5e /cli/cli/traversal/unit.hxx | |
parent | 3183f3bb927a90783ae0aeaf190a0919377aabe4 (diff) |
Separate tests and examples into individual packages
Also make cli module to be explicitly enabled via the config.cli configuration
variable.
Diffstat (limited to 'cli/cli/traversal/unit.hxx')
-rw-r--r-- | cli/cli/traversal/unit.hxx | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/cli/cli/traversal/unit.hxx b/cli/cli/traversal/unit.hxx new file mode 100644 index 0000000..eab42aa --- /dev/null +++ b/cli/cli/traversal/unit.hxx @@ -0,0 +1,58 @@ +// file : cli/traversal/unit.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// license : MIT; see accompanying LICENSE file + +#ifndef CLI_TRAVERSAL_UNIT_HXX +#define CLI_TRAVERSAL_UNIT_HXX + +#include <cli/traversal/elements.hxx> +#include <cli/semantics/unit.hxx> + +namespace traversal +{ + struct cxx_includes: edge<semantics::cxx_includes> + { + cxx_includes () + { + } + + cxx_includes (node_dispatcher& n) + { + node_traverser (n); + } + + virtual void + traverse (type&); + }; + + struct cli_includes: edge<semantics::cli_includes> + { + cli_includes () + { + } + + cli_includes (node_dispatcher& n) + { + node_traverser (n); + } + + virtual void + traverse (type&); + }; + + struct cxx_unit: node<semantics::cxx_unit> {}; + + struct cli_unit: scope_template<semantics::cli_unit> + { + virtual void + traverse (type&); + + virtual void + pre (type&); + + virtual void + post (type&); + }; +} + +#endif // CLI_TRAVERSAL_UNIT_HXX |