diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-21 15:23:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-22 17:56:59 +0200 |
commit | 5cf8ecfc25d56e733e2c803942f1bee0378e6639 (patch) | |
tree | bac693fb7ef803576d22b4abc67e3e193efa8a40 /odb/parser.cxx | |
parent | 0d61aca198f1a5a71a791b892ef55fe2947d7aa0 (diff) |
Add support for optional tree node value in pragmas
Diffstat (limited to 'odb/parser.cxx')
-rw-r--r-- | odb/parser.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/parser.cxx b/odb/parser.cxx index fda4579..16612df 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -1886,6 +1886,10 @@ process_pragmas (tree t, tmp[j] = '-'; node.set (tmp, i->value); + + if (i->node != 0) + node.set (tmp + "-node", i->node); + node.set (tmp + "-loc", i->loc); } } @@ -1917,6 +1921,10 @@ process_named_pragmas (tree t, node& node) tmp[j] = '-'; node.set (tmp, i->value); + + if (i->node != 0) + node.set (tmp + "-node", i->node); + node.set (tmp + "-loc", i->loc); } } |