aboutsummaryrefslogtreecommitdiff
path: root/odb/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-06 14:42:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-06 14:42:43 +0200
commit61663c06d351a7c5cb868840d3c94cb95335b2d6 (patch)
tree0e1ec7d8509dc39d7ac9618dfe126186c07cd347 /odb/parser.cxx
parent428558c89850fe8c79b9c89a943bd996912d12f5 (diff)
Add support for object pragma
This pragma is used to specify objects in a view declaration.
Diffstat (limited to 'odb/parser.cxx')
-rw-r--r--odb/parser.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/odb/parser.cxx b/odb/parser.cxx
index 105333d..b615a2f 100644
--- a/odb/parser.cxx
+++ b/odb/parser.cxx
@@ -1856,7 +1856,7 @@ process_pragmas (tree t,
{
assert (!i->assoc);
- if (check_decl_type (t, name, i->prag->name, i->prag->loc))
+ if (i->prag->check (t, name, i->prag->pragma_name, i->prag->loc))
prags.insert (*i->prag);
else
error_++;
@@ -1902,12 +1902,12 @@ void parser::impl::
add_pragma (node& n, pragma const& p)
{
if (trace)
- ts << "\t\t pragma " << p.name << " (" << p.value << ")" << endl;
+ ts << "\t\t pragma " << p.pragma_name << " (" << p.value << ")" << endl;
// Convert '_' to '-' in the pragma name so we get foo-bar instead
// of foo_bar (that's the convention used).
//
- string kv (p.name);
+ string kv (p.context_name);
for (size_t i (0); i < kv.size (); ++i)
if (kv[i] == '_')
kv[i] = '-';
@@ -1957,7 +1957,7 @@ diagnose_unassoc_pragmas (decl_set const& decls)
{
pragma const& p (*i->prag);
error (p.loc)
- << "odb pragma '" << p.name << "' is not associated with a "
+ << "db pragma '" << p.pragma_name << "' is not associated with a "
<< "declaration" << endl;
error_++;
}