diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-23 12:34:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-23 12:34:58 +0200 |
commit | 64ff415ed33a733f9a297b1526403bfb8f391c63 (patch) | |
tree | d0f02c10e2bc9c068538719186f0683e7743e314 /odb/semantics/namespace.hxx | |
parent | 4867605e59aa35e588f6f812c42ea95dffc0bbb3 (diff) |
Semantic graph and parsing code
Currently covers/handles namespace, class definitions (including bases
and data members), and typedefs in namespace-scopes.
Diffstat (limited to 'odb/semantics/namespace.hxx')
-rw-r--r-- | odb/semantics/namespace.hxx | 31 |
1 files changed, 31 insertions, 0 deletions
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 <boris@codesynthesis.com> +// 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 <semantics/elements.hxx> + +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 |