eolian gen: update tests to cover var generation

This commit is contained in:
Daniel Kolesa 2016-10-20 15:22:14 +02:00
parent 0ee248fb86
commit 02aed9a043
6 changed files with 61 additions and 0 deletions

View File

@ -1,3 +1,11 @@
const Foo: int = 5; [[doc for constant]]
var Bar: float = 10.3f; [[doc for global]]
var Baz: long; [[in header but not in source]]
var @extern Bah: double; // not generated
class Class_Simple {
[[Class Desc Simple]]
legacy_prefix: evas_object_simple;

View File

@ -1,3 +1,4 @@
float Bar = 10.300000f;
Eina_Bool _class_simple_a_set(Eo *obj, Evas_Simple_Data *pd, int value);

View File

@ -11,6 +11,26 @@ typedef Eo Class_Simple;
#ifndef _CLASS_SIMPLE_EO_TYPES
#define _CLASS_SIMPLE_EO_TYPES
#ifndef Foo
/** doc for constant
*
* @ingroup Foo
*/
#define Foo 5
#endif
/** doc for global
*
* @ingroup Bar
*/
extern float Bar;
/** in header but not in source
*
* @ingroup Baz
*/
extern long Baz;
#endif
/** Class Desc Simple

View File

@ -11,6 +11,26 @@ typedef Eo Class_Simple;
#ifndef _CLASS_SIMPLE_EO_TYPES
#define _CLASS_SIMPLE_EO_TYPES
#ifndef Foo
/** doc for constant
*
* @ingroup Foo
*/
#define Foo 5
#endif
/** doc for global
*
* @ingroup Bar
*/
extern float Bar;
/** in header but not in source
*
* @ingroup Baz
*/
extern long Baz;
#endif

View File

@ -56,6 +56,12 @@ typedef enum
*/
typedef Bar Alias;
/** Docs for var.
*
* @ingroup pants
*/
extern int pants;
/** Opaque struct docs. See @ref Foo for another struct.
*
* @ingroup Opaque

View File

@ -56,6 +56,12 @@ typedef enum
*/
typedef Bar Alias;
/** Docs for var.
*
* @ingroup pants
*/
extern int pants;
/** Opaque struct docs. See @ref Foo for another struct.
*
* @ingroup Opaque