aboutsummaryrefslogtreecommitdiff
path: root/odb/pragma.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-21 15:23:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-22 17:56:59 +0200
commit5cf8ecfc25d56e733e2c803942f1bee0378e6639 (patch)
treebac693fb7ef803576d22b4abc67e3e193efa8a40 /odb/pragma.hxx
parent0d61aca198f1a5a71a791b892ef55fe2947d7aa0 (diff)
Add support for optional tree node value in pragmas
Diffstat (limited to 'odb/pragma.hxx')
-rw-r--r--odb/pragma.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/odb/pragma.hxx b/odb/pragma.hxx
index f5714eb..d8c4ab5 100644
--- a/odb/pragma.hxx
+++ b/odb/pragma.hxx
@@ -15,8 +15,8 @@
struct pragma
{
- pragma (std::string const& n, std::string const& v, location_t l)
- : name (n), value (v), loc (l)
+ pragma (std::string const& n, std::string const& v, tree tn, location_t l)
+ : name (n), value (v), node (tn), loc (l)
{
}
@@ -28,6 +28,7 @@ struct pragma
std::string name;
std::string value;
+ tree node;
location_t loc;
};