From e4b1b83a5a0fd902824071d5db04d7cda17e2f88 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 16 Jun 2015 12:06:18 +0200 Subject: Implement before/after pragmas for virtual data member ordering --- odb/pragma.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'odb/pragma.hxx') diff --git a/odb/pragma.hxx b/odb/pragma.hxx index bde438f..d6b0f42 100644 --- a/odb/pragma.hxx +++ b/odb/pragma.hxx @@ -21,12 +21,16 @@ struct virt_declaration { virt_declaration (location_t l, + location_t o, + int ob, std::string const& n, gcc_tree_code_type tc, tree t) - : loc (l), name (n), tree_code (tc), type (t) {} + : loc (l), ord (o), ord_bias (ob), name (n), tree_code (tc), type (t) {} location_t loc; + location_t ord; // Ordering location for before/after support. + int ord_bias; // Ordering bias for the same locations. std::string name; gcc_tree_code_type tree_code; tree type; // Declaration's type. -- cgit v1.1