We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea95790 commit dc582c6Copy full SHA for dc582c6
1 file changed
test.py
@@ -260,5 +260,16 @@ def test_generate_empty_func(self):
260
# We can check that the only constructor is the default one or checking string absence
261
self.assertNotIn("VIDL_DoNothing() :", output)
262
263
+ def test_regression_reference_members(self):
264
+ content = """
265
+ // VIDL_GENERATE
266
+ void vhBeginMarker(const std::string& name);
267
+ """
268
+ output = vidl.generate_source(content)
269
+ # The member should NOT be a reference
270
+ self.assertIn("const std::string name;", output)
271
+ # The constructor parameter SHOULD be a reference
272
+ self.assertIn("VIDL_vhBeginMarker(const std::string& _name)", output)
273
+
274
if __name__ == '__main__':
275
unittest.main()
0 commit comments