Commit 165cbad
TypeObject generation (#280)
* Typeobjects with tests (#255)
* Fix tests for common struct name in different modules (#268)
* Refs #20052: fix tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20052: update submodule
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
---------
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Added TypeObject tests with templates for primitives and strings structures.
Signed-off-by: adriancampo <[email protected]>
* Added TypeObject tests for most cases.
Signed-off-by: adriancampo <[email protected]>
* Added TypeObject tests for unions enums and annotations.
Signed-off-by: adriancampo <[email protected]>
* Added missing checks
Signed-off-by: adriancampo <[email protected]>
* API changes. Additional checks.
Signed-off-by: adriancampo <[email protected]>
* Changes if TypeIdentifiers checks.
Signed-off-by: adriancampo <[email protected]>
* API changes. Fixed errors.
Signed-off-by: adriancampo <[email protected]>
* Tests use gtest now.
Signed-off-by: adriancampo <[email protected]>
* Format changes.
Signed-off-by: adriancampo <[email protected]>
* Fixed namespaces, inheritance check and type functions.
Signed-off-by: adriancampo <[email protected]>
* Typo
Signed-off-by: adriancampo <[email protected]>
* Refs #19595: -typeobject argument is deprecated. TypeObject files will always be generated
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix copyright and include header order. Remove unused headers
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix TypeObjectRegistry::get_type_identifiers call
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix TypeObjectRegistry::get_type_objects call
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: remove const tests: constants do not have TypeObject
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix templates. Remove non-required parameter
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: simplify test templates and include collection and string tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: refactor struct TypeObject test
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: refactor bitset TypeObject test
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: refactor bitset TypeObject tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix enum type TypeObject tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix enum literals TypeObject test
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix bitmask TypeObject tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix type detail annotations checks
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix alias tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix union type TypeObject tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix union member tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: reorder templates. Fixes for string/wstring
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: check Collection TypeIdentifier EquivalenceKind
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix discriminator API according to review suggestion
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: array type tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix map type tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: map type tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix build errors
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: check TypeIdentifier and TypeObject consistency
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: remove non-necessary template attribute
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: member applied annotations check
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: remove non necessary templates. Check already done within consistency methods
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: check dimension/union label
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: add annotation type test
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: w/string type tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: REMOVE: comment TypeObject code in order to build
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: update submodules
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fixes in TypeObject tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: update dds types test submodule
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: update idl parser submodule
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: fix Fast DDS include
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19595: update submodule
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
---------
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: adriancampo <[email protected]>
Co-authored-by: José Luis Bueno López <[email protected]>
Co-authored-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: introduce new templates to generate TypeObject code
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: TypeObject header implementation
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: minor fixes
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: move anonymous collection name generator to common code
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: skeleton
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: improve verbatim annotation test. Alias custom annotations should be included only once
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: fix typo
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: alias type implementation
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: struct_type implementation
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: fix sequential member id
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: struct members
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: refactor TypeObjectSupport infrastructure
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: refactor TypeObjectSupport
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: do not execute code in main function
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: assign proper member id with inheritance
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: refactor register struct type
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: fix calling templates with proper parameters
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: annotation impl
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: enum impl
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: w/string impl
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: several fixes in tests
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: alias impl. Annotation refactor
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: fix get TypeObject template
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: union impl
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: union member impl
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: bitset impl
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: bitmask impl
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: sequences impl
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: small refactor to adapt to new throwing API
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: update unbounded collections name
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: arrays impl
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #19906: map impl
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: support for not applied annotations
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: generate TypeObject tests only for main dependency
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: fix expected flags
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: option to avoid generating type object support files
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: delete legacy TypeObject template
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: integration, fix use of external and other minor bugs/typos
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: test integration: fix unbounded collections, correctly test collections, correctly check TypeIdentifiers, correctly use fixed_string API
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: use variables
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: fix conflicts after rebase
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: no type support option disables also TypeObject support generation
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: fix Fast DDS include
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: avoid warning
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: use genapi module conversion in TypeObject templates
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: apply review suggestions
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: create register_type_object_representation method in TypeSupport
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: fix map keys
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: add sequence order check and fixes in map keys and minimal annotation parameters
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: update IDL Parser submodule
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: fix Windows warnings C4456: declararion hides previous local declaration
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: fix collection name in case of enum types
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: update IDL Parser submodule
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: fix Windows warning
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: update IDL Parser submodule
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
* Refs #20129: apply review suggestions
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
---------
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
Signed-off-by: adriancampo <[email protected]>
Co-authored-by: Adrian del Campo <[email protected]>1 parent d9b23a3 commit 165cbad
File tree
15 files changed
+2870
-2136
lines changed- resources
- src/main/java/com/eprosima
- fastcdr/idl
- context
- templates
- fastdds
- idl
- grammar
- templates
- thirdparty
15 files changed
+2870
-2136
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
Lines changed: 2 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
| |||
104 | 100 | | |
105 | 101 | | |
106 | 102 | | |
107 | | - | |
| 103 | + | |
108 | 104 | | |
109 | | - | |
| 105 | + | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
| |||
157 | 153 | | |
158 | 154 | | |
159 | 155 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 156 | | |
165 | 157 | | |
166 | 158 | | |
| |||
491 | 483 | | |
492 | 484 | | |
493 | 485 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | 486 | | |
499 | 487 | | |
500 | 488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
| |||
144 | 141 | | |
145 | 142 | | |
146 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
315 | 320 | | |
316 | 321 | | |
317 | 322 | | |
| |||
361 | 366 | | |
362 | 367 | | |
363 | 368 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
| |||
579 | 580 | | |
580 | 581 | | |
581 | 582 | | |
| 583 | + | |
582 | 584 | | |
583 | 585 | | |
584 | 586 | | |
| |||
628 | 630 | | |
629 | 631 | | |
630 | 632 | | |
| 633 | + | |
| 634 | + | |
631 | 635 | | |
632 | 636 | | |
633 | 637 | | |
634 | 638 | | |
635 | 639 | | |
636 | 640 | | |
637 | 641 | | |
638 | | - | |
639 | | - | |
640 | 642 | | |
641 | 643 | | |
642 | 644 | | |
| |||
730 | 732 | | |
731 | 733 | | |
732 | 734 | | |
733 | | - | |
| 735 | + | |
734 | 736 | | |
735 | 737 | | |
736 | 738 | | |
| |||
769 | 771 | | |
770 | 772 | | |
771 | 773 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | 774 | | |
778 | 775 | | |
779 | 776 | | |
| |||
782 | 779 | | |
783 | 780 | | |
784 | 781 | | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
785 | 788 | | |
786 | 789 | | |
787 | 790 | | |
| |||
804 | 807 | | |
805 | 808 | | |
806 | 809 | | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
807 | 816 | | |
808 | 817 | | |
809 | 818 | | |
| |||
852 | 861 | | |
853 | 862 | | |
854 | 863 | | |
855 | | - | |
856 | | - | |
| 864 | + | |
857 | 865 | | |
858 | 866 | | |
859 | 867 | | |
| |||
909 | 917 | | |
910 | 918 | | |
911 | 919 | | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
938 | 931 | | |
939 | 932 | | |
940 | 933 | | |
| |||
961 | 954 | | |
962 | 955 | | |
963 | 956 | | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
964 | 965 | | |
965 | 966 | | |
966 | 967 | | |
967 | 968 | | |
968 | 969 | | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
969 | 985 | | |
970 | 986 | | |
971 | 987 | | |
| |||
1669 | 1685 | | |
1670 | 1686 | | |
1671 | 1687 | | |
1672 | | - | |
| 1688 | + | |
1673 | 1689 | | |
1674 | 1690 | | |
1675 | 1691 | | |
| |||
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
| 66 | + | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
569 | | - | |
570 | 568 | | |
571 | 569 | | |
| 570 | + | |
| 571 | + | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
574 | 574 | | |
575 | | - | |
| 575 | + | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
580 | 580 | | |
581 | | - | |
| 581 | + | |
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
| |||
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | | - | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | | - | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
87 | 106 | | |
0 commit comments