diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-08-15 11:46:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-08-15 11:46:00 +0200 |
commit | eacf52a9a4f3832274fdefc909ab23c13413e128 (patch) | |
tree | f1f754b6149797315f91d6f872363555201d5a65 /odb/cxx-token.hxx | |
parent | 396cad633b6f0559a39e5111827f9b1125c67506 (diff) |
Add support for member accessors/modifiers
New pragmas: get, set, access. New test: common/access.
Diffstat (limited to 'odb/cxx-token.hxx')
-rw-r--r-- | odb/cxx-token.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/cxx-token.hxx b/odb/cxx-token.hxx index 6478fc1..ae5fe60 100644 --- a/odb/cxx-token.hxx +++ b/odb/cxx-token.hxx @@ -12,7 +12,11 @@ struct cxx_token { - cxx_token (location_t l, unsigned int t): loc (l), type (t), node (0) {} + cxx_token (location_t l, + unsigned int t, + std::string const& lt = std::string (), + tree n = 0) + : loc (l), type (t), literal (lt), node (n) {} location_t loc; // Location of this token. unsigned int type; // Untyped cpp_ttype. |