From 64ff415ed33a733f9a297b1526403bfb8f391c63 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 23 Mar 2010 12:34:58 +0200 Subject: Semantic graph and parsing code Currently covers/handles namespace, class definitions (including bases and data members), and typedefs in namespace-scopes. --- odb/semantics/namespace.hxx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 odb/semantics/namespace.hxx (limited to 'odb/semantics/namespace.hxx') diff --git a/odb/semantics/namespace.hxx b/odb/semantics/namespace.hxx new file mode 100644 index 0000000..b6a673c --- /dev/null +++ b/odb/semantics/namespace.hxx @@ -0,0 +1,31 @@ +// file : odb/semantics/namespace.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_SEMANTICS_NAMESPACE_HXX +#define ODB_SEMANTICS_NAMESPACE_HXX + +#include + +namespace semantics +{ + class namespace_: public scope + { + public: + namespace_ (path const& file, size_t line, size_t column) + : node (file, line, column) + { + } + + namespace_ () + { + } + + // Resolve conflict between scope::scope and nameable::scope. + // + using nameable::scope; + }; +} + +#endif // ODB_SEMANTICS_NAMESPACE_HXX -- cgit v1.1