From de2acaa079cbf6bcb1db8fecd956789360d9dd5c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Nov 2010 12:34:44 +0200 Subject: Maintain GCC tree node for all semantic graph nodes --- odb/semantics/fundamental.hxx | 53 ++++++++++++++----------------------------- 1 file changed, 17 insertions(+), 36 deletions(-) (limited to 'odb/semantics/fundamental.hxx') diff --git a/odb/semantics/fundamental.hxx b/odb/semantics/fundamental.hxx index 70c6162..3ac3551 100644 --- a/odb/semantics/fundamental.hxx +++ b/odb/semantics/fundamental.hxx @@ -21,21 +21,16 @@ namespace semantics virtual string fq_name (names*) const; - - protected: - fund_type (tree tn); }; struct fund_void: fund_type { - fund_void (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_void (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_bool: fund_type { - fund_bool (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_bool (tree tn): node (path (""), 0, 0, tn) {} }; // @@ -44,74 +39,63 @@ namespace semantics struct fund_char: fund_type { - fund_char (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_char (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_wchar: fund_type { - fund_wchar (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_wchar (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_signed_char: fund_type { - fund_signed_char (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_signed_char (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_unsigned_char: fund_type { - fund_unsigned_char (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_unsigned_char (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_short: fund_type { - fund_short (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_short (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_unsigned_short: fund_type { - fund_unsigned_short (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_unsigned_short (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_int: fund_type { - fund_int (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_int (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_unsigned_int: fund_type { - fund_unsigned_int (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_unsigned_int (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_long: fund_type { - fund_long (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_long (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_unsigned_long: fund_type { - fund_unsigned_long (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_unsigned_long (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_long_long: fund_type { - fund_long_long (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_long_long (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_unsigned_long_long: fund_type { fund_unsigned_long_long (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + : node (path (""), 0, 0, tn) {} }; // @@ -120,20 +104,17 @@ namespace semantics struct fund_float: fund_type { - fund_float (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_float (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_double: fund_type { - fund_double (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_double (tree tn): node (path (""), 0, 0, tn) {} }; struct fund_long_double: fund_type { - fund_long_double (tree tn) - : node (path (""), 0, 0), fund_type (tn) {} + fund_long_double (tree tn): node (path (""), 0, 0, tn) {} }; } -- cgit v1.1