summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-06 03:49:16 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-06 03:49:16 -0300
commit27429cf40be21048aac36a27166ead76dc1dfe5a (patch)
tree8794e9a59a4551ee5e943605479e3e5b96bf058b /src/lib/eolian_cxx
parent6680eca35902360243e99f153a38bdc32eea0314 (diff)
eolian-cxx: Fix compilation error on clang with const UDT initialization
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/address_of.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/attribute_conditional.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/attribute_replace.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/attributes.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/base_class_definition.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/c_type.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/case.hpp4
-rw-r--r--src/lib/eolian_cxx/grammar/class_declaration.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/class_definition.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/class_implementation.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/converting_argument.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/eps.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/function_declaration.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/function_definition.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/header_guards.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/header_include_directive.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/implementation_include_directive.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/indentation.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/namespace.hpp2
-rw-r--r--src/lib/eolian_cxx/grammar/parameter.hpp4
-rw-r--r--src/lib/eolian_cxx/grammar/string.hpp6
-rw-r--r--src/lib/eolian_cxx/grammar/type.hpp2
22 files changed, 26 insertions, 26 deletions
diff --git a/src/lib/eolian_cxx/grammar/address_of.hpp b/src/lib/eolian_cxx/grammar/address_of.hpp
index 41a027667c..3fa48b0d5d 100644
--- a/src/lib/eolian_cxx/grammar/address_of.hpp
+++ b/src/lib/eolian_cxx/grammar/address_of.hpp
@@ -67,7 +67,7 @@ template <>
67struct attributes_needed<address_of_generator> : std::integral_constant<int, 1> {}; 67struct attributes_needed<address_of_generator> : std::integral_constant<int, 1> {};
68} 68}
69 69
70address_of_generator const address_of; 70address_of_generator const address_of = {};
71 71
72} } } 72} } }
73 73
diff --git a/src/lib/eolian_cxx/grammar/attribute_conditional.hpp b/src/lib/eolian_cxx/grammar/attribute_conditional.hpp
index 1fab57d897..8bf107a041 100644
--- a/src/lib/eolian_cxx/grammar/attribute_conditional.hpp
+++ b/src/lib/eolian_cxx/grammar/attribute_conditional.hpp
@@ -52,7 +52,7 @@ struct attribute_conditional_terminal
52 { 52 {
53 return {f}; 53 return {f};
54 } 54 }
55} const attribute_conditional; 55} const attribute_conditional = {};
56 56
57namespace type_traits { 57namespace type_traits {
58template <typename F, typename G> 58template <typename F, typename G>
diff --git a/src/lib/eolian_cxx/grammar/attribute_replace.hpp b/src/lib/eolian_cxx/grammar/attribute_replace.hpp
index 448abc23b2..e45fb9f710 100644
--- a/src/lib/eolian_cxx/grammar/attribute_replace.hpp
+++ b/src/lib/eolian_cxx/grammar/attribute_replace.hpp
@@ -49,7 +49,7 @@ struct attribute_replace_terminal
49 { 49 {
50 return {f}; 50 return {f};
51 } 51 }
52} const attribute_replace; 52} const attribute_replace = {};
53 53
54namespace type_traits { 54namespace type_traits {
55template <typename F, typename G> 55template <typename F, typename G>
diff --git a/src/lib/eolian_cxx/grammar/attributes.hpp b/src/lib/eolian_cxx/grammar/attributes.hpp
index 4e63676712..d33fcf2de7 100644
--- a/src/lib/eolian_cxx/grammar/attributes.hpp
+++ b/src/lib/eolian_cxx/grammar/attributes.hpp
@@ -10,7 +10,7 @@ namespace efl { namespace eolian { namespace grammar {
10namespace attributes { 10namespace attributes {
11 11
12struct unused_type {}; 12struct unused_type {};
13unused_type const unused; 13unused_type const unused = {};
14 14
15template <int N, typename Tuple, typename Enable = void> 15template <int N, typename Tuple, typename Enable = void>
16struct tuple_element; 16struct tuple_element;
diff --git a/src/lib/eolian_cxx/grammar/base_class_definition.hpp b/src/lib/eolian_cxx/grammar/base_class_definition.hpp
index 29b68133f7..99e7d191ce 100644
--- a/src/lib/eolian_cxx/grammar/base_class_definition.hpp
+++ b/src/lib/eolian_cxx/grammar/base_class_definition.hpp
@@ -105,7 +105,7 @@ template <>
105struct attributes_needed<base_class_definition_generator> : std::integral_constant<int, 1> {}; 105struct attributes_needed<base_class_definition_generator> : std::integral_constant<int, 1> {};
106} 106}
107 107
108base_class_definition_generator const base_class_definition; 108base_class_definition_generator const base_class_definition = {};
109 109
110} } } 110} } }
111 111
diff --git a/src/lib/eolian_cxx/grammar/c_type.hpp b/src/lib/eolian_cxx/grammar/c_type.hpp
index b963a77873..e6a72fd025 100644
--- a/src/lib/eolian_cxx/grammar/c_type.hpp
+++ b/src/lib/eolian_cxx/grammar/c_type.hpp
@@ -67,7 +67,7 @@ template <>
67struct attributes_needed<c_type_generator> : std::integral_constant<int, 1> {}; 67struct attributes_needed<c_type_generator> : std::integral_constant<int, 1> {};
68} 68}
69 69
70c_type_generator const c_type; 70c_type_generator const c_type = {};
71 71
72} } } 72} } }
73 73
diff --git a/src/lib/eolian_cxx/grammar/case.hpp b/src/lib/eolian_cxx/grammar/case.hpp
index e6599910ec..86421363ac 100644
--- a/src/lib/eolian_cxx/grammar/case.hpp
+++ b/src/lib/eolian_cxx/grammar/case.hpp
@@ -70,7 +70,7 @@ struct lower_case_directive
70 { 70 {
71 return lower_case_generator<G>{g}; 71 return lower_case_generator<G>{g};
72 } 72 }
73} const lower_case; 73} const lower_case = {};
74 74
75struct upper_case_directive 75struct upper_case_directive
76{ 76{
@@ -79,7 +79,7 @@ struct upper_case_directive
79 { 79 {
80 return upper_case_generator<G>{g}; 80 return upper_case_generator<G>{g};
81 } 81 }
82} const upper_case; 82} const upper_case = {};
83 83
84} } } 84} } }
85 85
diff --git a/src/lib/eolian_cxx/grammar/class_declaration.hpp b/src/lib/eolian_cxx/grammar/class_declaration.hpp
index f117f1330d..6f23641e4d 100644
--- a/src/lib/eolian_cxx/grammar/class_declaration.hpp
+++ b/src/lib/eolian_cxx/grammar/class_declaration.hpp
@@ -49,7 +49,7 @@ template <>
49struct attributes_needed<class_declaration_generator> : std::integral_constant<int, 1> {}; 49struct attributes_needed<class_declaration_generator> : std::integral_constant<int, 1> {};
50} 50}
51 51
52class_declaration_generator const class_declaration; 52class_declaration_generator const class_declaration = {};
53 53
54} } } 54} } }
55 55
diff --git a/src/lib/eolian_cxx/grammar/class_definition.hpp b/src/lib/eolian_cxx/grammar/class_definition.hpp
index 7473ae8ff0..b5ec2a9318 100644
--- a/src/lib/eolian_cxx/grammar/class_definition.hpp
+++ b/src/lib/eolian_cxx/grammar/class_definition.hpp
@@ -169,7 +169,7 @@ template <>
169struct attributes_needed<class_definition_generator> : std::integral_constant<int, 1> {}; 169struct attributes_needed<class_definition_generator> : std::integral_constant<int, 1> {};
170} 170}
171 171
172class_definition_generator const class_definition; 172class_definition_generator const class_definition = {};
173 173
174} } } 174} } }
175 175
diff --git a/src/lib/eolian_cxx/grammar/class_implementation.hpp b/src/lib/eolian_cxx/grammar/class_implementation.hpp
index a3c1d01f54..de4341fc04 100644
--- a/src/lib/eolian_cxx/grammar/class_implementation.hpp
+++ b/src/lib/eolian_cxx/grammar/class_implementation.hpp
@@ -49,7 +49,7 @@ template <>
49struct attributes_needed<class_implementation_generator> : std::integral_constant<int, 1> {}; 49struct attributes_needed<class_implementation_generator> : std::integral_constant<int, 1> {};
50} 50}
51 51
52class_implementation_generator const class_implementation; 52class_implementation_generator const class_implementation = {};
53 53
54} } } 54} } }
55 55
diff --git a/src/lib/eolian_cxx/grammar/converting_argument.hpp b/src/lib/eolian_cxx/grammar/converting_argument.hpp
index 0f512ca698..4a2d959163 100644
--- a/src/lib/eolian_cxx/grammar/converting_argument.hpp
+++ b/src/lib/eolian_cxx/grammar/converting_argument.hpp
@@ -40,7 +40,7 @@ template <>
40struct attributes_needed<converting_argument_generator> : std::integral_constant<int, 1> {}; 40struct attributes_needed<converting_argument_generator> : std::integral_constant<int, 1> {};
41} 41}
42 42
43converting_argument_generator const converting_argument; 43converting_argument_generator const converting_argument = {};
44 44
45} } } 45} } }
46 46
diff --git a/src/lib/eolian_cxx/grammar/eps.hpp b/src/lib/eolian_cxx/grammar/eps.hpp
index e47d5f5499..900df90e1a 100644
--- a/src/lib/eolian_cxx/grammar/eps.hpp
+++ b/src/lib/eolian_cxx/grammar/eps.hpp
@@ -17,7 +17,7 @@ struct eps_generator
17template <> 17template <>
18struct is_eager_generator<eps_generator> : std::true_type {}; 18struct is_eager_generator<eps_generator> : std::true_type {};
19 19
20eps_generator const eps; 20eps_generator const eps = {};
21 21
22} } } 22} } }
23 23
diff --git a/src/lib/eolian_cxx/grammar/function_declaration.hpp b/src/lib/eolian_cxx/grammar/function_declaration.hpp
index aabf8a2dba..a6aa43948e 100644
--- a/src/lib/eolian_cxx/grammar/function_declaration.hpp
+++ b/src/lib/eolian_cxx/grammar/function_declaration.hpp
@@ -32,7 +32,7 @@ template <>
32struct attributes_needed<function_declaration_generator> : std::integral_constant<int, 1> {}; 32struct attributes_needed<function_declaration_generator> : std::integral_constant<int, 1> {};
33} 33}
34 34
35function_declaration_generator const function_declaration; 35function_declaration_generator const function_declaration = {};
36 36
37} } } 37} } }
38 38
diff --git a/src/lib/eolian_cxx/grammar/function_definition.hpp b/src/lib/eolian_cxx/grammar/function_definition.hpp
index 8be8bba9e3..170fa986e9 100644
--- a/src/lib/eolian_cxx/grammar/function_definition.hpp
+++ b/src/lib/eolian_cxx/grammar/function_definition.hpp
@@ -148,7 +148,7 @@ struct function_definition_terminal
148 { 148 {
149 return function_definition_generator{name}; 149 return function_definition_generator{name};
150 } 150 }
151} const function_definition; 151} const function_definition = {};
152 152
153} } } 153} } }
154 154
diff --git a/src/lib/eolian_cxx/grammar/header_guards.hpp b/src/lib/eolian_cxx/grammar/header_guards.hpp
index 6ab743afee..eab596d91e 100644
--- a/src/lib/eolian_cxx/grammar/header_guards.hpp
+++ b/src/lib/eolian_cxx/grammar/header_guards.hpp
@@ -72,7 +72,7 @@ struct header_guards_directive
72 } 72 }
73}; 73};
74 74
75header_guards_directive const header_guards; 75header_guards_directive const header_guards = {};
76 76
77} } } 77} } }
78 78
diff --git a/src/lib/eolian_cxx/grammar/header_include_directive.hpp b/src/lib/eolian_cxx/grammar/header_include_directive.hpp
index 6049491397..8fbc0eb4fa 100644
--- a/src/lib/eolian_cxx/grammar/header_include_directive.hpp
+++ b/src/lib/eolian_cxx/grammar/header_include_directive.hpp
@@ -27,7 +27,7 @@ template <>
27struct attributes_needed<header_include_directive_generator> : std::integral_constant<int, 1> {}; 27struct attributes_needed<header_include_directive_generator> : std::integral_constant<int, 1> {};
28} 28}
29 29
30header_include_directive_generator const header_include_directive; 30header_include_directive_generator const header_include_directive = {};
31 31
32} } } 32} } }
33 33
diff --git a/src/lib/eolian_cxx/grammar/implementation_include_directive.hpp b/src/lib/eolian_cxx/grammar/implementation_include_directive.hpp
index 01f89cf74d..dab1e0a7e9 100644
--- a/src/lib/eolian_cxx/grammar/implementation_include_directive.hpp
+++ b/src/lib/eolian_cxx/grammar/implementation_include_directive.hpp
@@ -32,7 +32,7 @@ template <>
32struct attributes_needed<implementation_include_directive_generator> : std::integral_constant<int, 1> {}; 32struct attributes_needed<implementation_include_directive_generator> : std::integral_constant<int, 1> {};
33} 33}
34 34
35implementation_include_directive_generator const implementation_include_directive; 35implementation_include_directive_generator const implementation_include_directive = {};
36 36
37} } } 37} } }
38 38
diff --git a/src/lib/eolian_cxx/grammar/indentation.hpp b/src/lib/eolian_cxx/grammar/indentation.hpp
index 7a64511511..615842e87b 100644
--- a/src/lib/eolian_cxx/grammar/indentation.hpp
+++ b/src/lib/eolian_cxx/grammar/indentation.hpp
@@ -35,7 +35,7 @@ struct scope_tab_terminal
35 { 35 {
36 return scope_tab_generator(n); 36 return scope_tab_generator(n);
37 } 37 }
38} const scope_tab; 38} const scope_tab = {};
39 39
40template <> 40template <>
41struct is_generator<scope_tab_terminal> : std::true_type {}; 41struct is_generator<scope_tab_terminal> : std::true_type {};
diff --git a/src/lib/eolian_cxx/grammar/namespace.hpp b/src/lib/eolian_cxx/grammar/namespace.hpp
index db5871c318..5cef9ecfe8 100644
--- a/src/lib/eolian_cxx/grammar/namespace.hpp
+++ b/src/lib/eolian_cxx/grammar/namespace.hpp
@@ -50,7 +50,7 @@ struct namespaces_directive
50 { 50 {
51 return namespaces_generator<G>{g}; 51 return namespaces_generator<G>{g};
52 } 52 }
53} const namespaces; 53} const namespaces = {};
54 54
55template <typename G> 55template <typename G>
56struct is_eager_generator<namespaces_generator<G>> : std::true_type {}; 56struct is_eager_generator<namespaces_generator<G>> : std::true_type {};
diff --git a/src/lib/eolian_cxx/grammar/parameter.hpp b/src/lib/eolian_cxx/grammar/parameter.hpp
index cd30464e21..c1fb1bcff1 100644
--- a/src/lib/eolian_cxx/grammar/parameter.hpp
+++ b/src/lib/eolian_cxx/grammar/parameter.hpp
@@ -54,7 +54,7 @@ template <>
54struct attributes_needed<parameter_type_generator> : std::integral_constant<int, 1> {}; 54struct attributes_needed<parameter_type_generator> : std::integral_constant<int, 1> {};
55} 55}
56 56
57parameter_type_generator const parameter_type; 57parameter_type_generator const parameter_type = {};
58 58
59struct parameter_generator 59struct parameter_generator
60{ 60{
@@ -71,7 +71,7 @@ namespace type_traits {
71template <> 71template <>
72struct attributes_needed<parameter_generator> : std::integral_constant<int, 1> {}; 72struct attributes_needed<parameter_generator> : std::integral_constant<int, 1> {};
73} 73}
74parameter_generator const parameter; 74parameter_generator const parameter = {};
75 75
76} } } 76} } }
77 77
diff --git a/src/lib/eolian_cxx/grammar/string.hpp b/src/lib/eolian_cxx/grammar/string.hpp
index a8a00a8da0..77507ce2a0 100644
--- a/src/lib/eolian_cxx/grammar/string.hpp
+++ b/src/lib/eolian_cxx/grammar/string.hpp
@@ -42,7 +42,7 @@ struct {
42 { 42 {
43 return literal_generator(literal); 43 return literal_generator(literal);
44 } 44 }
45} const lit; 45} const lit = {};
46 46
47// string 47// string
48struct string_generator 48struct string_generator
@@ -143,7 +143,7 @@ struct string_generator_terminal
143 { 143 {
144 return specific_string_generator{string}; 144 return specific_string_generator{string};
145 } 145 }
146} const string; 146} const string = {};
147 147
148struct string_replace_terminal 148struct string_replace_terminal
149{ 149{
@@ -151,7 +151,7 @@ struct string_replace_terminal
151 { 151 {
152 return string_replace_generator{from, to}; 152 return string_replace_generator{from, to};
153 } 153 }
154} const string_replace; 154} const string_replace = {};
155 155
156template <> 156template <>
157struct is_generator<string_generator_terminal> : std::true_type {}; 157struct is_generator<string_generator_terminal> : std::true_type {};
diff --git a/src/lib/eolian_cxx/grammar/type.hpp b/src/lib/eolian_cxx/grammar/type.hpp
index 2ba37442da..c2719c35c1 100644
--- a/src/lib/eolian_cxx/grammar/type.hpp
+++ b/src/lib/eolian_cxx/grammar/type.hpp
@@ -33,7 +33,7 @@ template <>
33struct attributes_needed<type_generator> : std::integral_constant<int, 1> {}; 33struct attributes_needed<type_generator> : std::integral_constant<int, 1> {};
34} 34}
35 35
36type_generator const type; 36type_generator const type = {};
37 37
38} } } 38} } }
39 39