115 Commits

Author SHA1 Message Date
Will MacCormack
ad5acea807 Changes to fix check-cpp 2025-10-10 18:26:39 -05:00
Will MacCormack
666718f49d Move to Fw::Endianness::BIG 2025-10-10 18:00:24 -05:00
Will MacCormack
b5e4c7b23f Add Little Endian Serialization Option 2025-10-10 07:59:03 -05:00
Rob Bocchino
5dc78fb4c6 Revise assertion in generated code 2025-08-21 10:59:09 -07:00
Rob Bocchino
04728bb35d Refactor array sizes 2025-08-20 15:08:46 -07:00
Rob Bocchino
ff77a27581 Revise array code gen
Make single element constructor explicit
2025-08-20 13:44:51 -07:00
Rob Bocchino
8428fa8c5c Refactor array code gen 2025-08-20 13:21:47 -07:00
Rob Bocchino
2e91d1a14d Revise analysis and tests
Allow large-size arrays
Add tests
2025-08-20 10:27:18 -07:00
Rob Bocchino
129aeaa8c6 Revise array code gen
Pass initializer list by reference in constructor

This seems to help the compiler disambiguate constructor arguments
in some cases
2025-08-19 15:09:13 -07:00
Rob Bocchino
ea5486c3a3 Revise code generation for arrays
Remove multi-element constructor
Use initializer list constructor instead
2025-08-19 14:52:29 -07:00
Rob Bocchino
7b563d2f27 Revise array code gen
Use initializer list for array values
2025-08-19 13:48:13 -07:00
Rob Bocchino
71163724f8 Revise array code gen
Add initializer list constructor
2025-08-19 13:31:14 -07:00
Rob Bocchino
413e2a8e44 Revise array code gen
Use the single-value constructor when all the element values
are the same
2025-08-19 13:21:42 -07:00
Rob Bocchino
bd62d81ad2 Refactor array code gen 2025-08-19 08:55:13 -07:00
Rob Bocchino
597935d1cc Revise array code gen
Use FwSizeType instead of U32 for indices
Add operator= with initializer list
2025-08-19 08:38:09 -07:00
Rob Bocchino
48c31f571a Revise array code gen 2025-08-18 17:46:51 -07:00
Rob Bocchino
35025b270f Revise comments in array code gen 2025-08-18 13:53:16 -07:00
Rob Bocchino
1b882aa8db
Merge branch 'main' into tumbar-serialize-deprecated 2025-08-01 09:47:18 -07:00
Rob Bocchino
ffd60021f8 Revise struct and array code gen 2025-08-01 08:37:22 -07:00
Andrei Tumbar
9f6eb62526 Clean up the final lingering C++ files 2025-07-31 15:37:53 -07:00
Andrei Tumbar
faa74d6316 Deprecate serialize/deserialize in favor of [de]serialize[From/To] 2025-07-30 19:16:59 -07:00
jawest
b0a6615835 Merge branch 'main' into issue-759 2025-07-30 10:53:57 -07:00
jawest
c52306a06f Regen fpp-to-cpp test ref files 2025-07-30 10:17:04 -07:00
M Starch
a6b6900551 Change struct getters/setters to include _ 2025-07-22 21:10:38 -07:00
Andrei Tumbar
b7594ebc26 Clean up spaces in formatted string 2025-06-06 09:43:11 -07:00
Andrei Tumbar
71203e6f3c Clean up the init code 2025-06-05 16:24:44 -07:00
Andrei Tumbar
07aa0e3b86 Rework struct toString() 2025-06-05 16:10:38 -07:00
Andrei Tumbar
036512c9c5 Array toString() with loop 2025-05-15 15:08:34 -07:00
Rob Bocchino
3ce7b62487 Revise C++ code gen for formatting
Regenerate unit tests
2025-05-13 17:47:28 -07:00
Andrei Tumbar
90f06667f5 Fix compare 2025-05-08 10:17:05 -07:00
Andrei Tumbar
baff2247df Clean up size checks 2025-05-08 07:30:15 -07:00
Andrei Tumbar
45295d17fc Generate loop for toString() on Struct member arrays 2025-05-06 17:41:05 -07:00
Andrei Tumbar
d8dfc67bcd Fix bugs in lexer to get tests to pass 2025-04-21 20:38:35 -07:00
M Starch
e2a9a4e3b5 Review fixes; Update refs 2025-04-01 13:24:05 -07:00
M Starch
528f4560ea Adding cpp-check fixes 2025-03-28 16:42:05 -07:00
M Starch
70b941e48d Updated ref for new code 2025-03-28 16:41:34 -07:00
Andrei Tumbar
1035a25ad4 Remove FpConfig include, fix PRI underscores 2025-03-26 16:13:16 -07:00
Andrei Tumbar
865e9aa3f3 Remove builtin types 2025-03-26 10:54:33 -07:00
Andrei Tumbar
e132e4f28f Update refs 2025-03-17 15:51:46 -07:00
Andrei Tumbar
0804409618 Use FpConfig instead of FppConfig, update tests to generate .cpp files so that they may be cpp-checked. Fix builtin type alias handling 2025-03-17 15:46:14 -07:00
Andrei Tumbar
10c9c59806 Merge remote-tracking branch 'origin/main' into issue-622-type-alias-impl 2025-03-17 08:42:01 -07:00
Andrei Tumbar
a0e69ffb3f Move extern C to HPP 2025-03-10 13:54:25 -07:00
Rob Bocchino
6ed499c734 Revise C++ code gen to eliminate warnings 2025-03-03 21:34:35 -08:00
Andrei Tumbar
54d71708d6 Compare against string type properly 2025-03-03 17:34:57 -08:00
Andrei Tumbar
53ab5b682e Update array test ref 2025-03-03 14:01:11 -08:00
Andrei Tumbar
6261ee2099 Implement Type Alias codegen 2025-03-03 13:57:54 -08:00
Rob Bocchino
af77a36980 Revise cycle tests 2025-02-27 08:16:17 -08:00
Andrei Tumbar
0e19a472a3 Clean up fpps and include 2025-02-26 14:18:30 -08:00
Andrei Tumbar
921054de47 Fix alias type value conversion & cycles 2025-02-26 09:14:53 -08:00
Rob Bocchino
8ad7897584 Revise C++ code gen for double promotion 2025-02-19 15:34:54 -08:00