29 Commits

Author SHA1 Message Date
Simone Morettini
36514483e3
Fix autogeneration of header guards and tests (#1734)
* Fix autogeneration of header guards and tests

* Updated namespace generation to support nested namespaces
* Update namespace generation for arrays and enums to support C++11
* Made UT of nested namespaces for enum and arrays

* Fix of wrong path changed locally

* #1734: Fix Python formatting

* #1734: Fix Python formatting

---------

Co-authored-by: Simone Morettini <simone.morettini@redwirespaceeurope.com>
2023-02-03 13:36:29 -08:00
M Starch
b76d8c9a0c
Update/types refactor as constants (#1623)
* lestarch: adding logical types implementation into Linux/StandardTypes.hpp

* lestarch: removing VxWorks StandardTypes from repository

* updated fprime types for correct compilation with vxworks and baremetal

* lestarch: refactoring types and configuration header w.r.t type design

* lestarch: replacing usages of AssertArg with FwAssertArgType

* lestarch: missspelled configuration

* lestarch: minor compilation fixes

* lestarch: renaming StandardTypes.hpp -> PlatformTypes.hpp

* lestarch: updating PRI tokens

* lestarch: replacing BasicTypes.hpp includes with FpConfig.hpp

* lestarch: UT and compilation fixes for types refactor

* lestarch: sp

* lestarch: fixing RPI issues in PassiveConsoleTextLogger

* lestarch: converting RPI build to debug

* lestarch: removing duplicate config imports

* lestarch: fixing documentation

* lestarch: fixing up multiple definitions and RPI compilation problems

* lestarch: reverting debug build

* lestarch: reverting platform types to class-based constants

* lestarch: reworking basic types

* lestarch: configured types refactor into classes

* lestarch: fixing bugs with static constants in classes

* lestarch: fixing platform types spelling and documentation

* lestarch: adding include guards to types headers

Co-authored-by: Kevin F Ortega <kevin.f.ortega@jpl.nasa.gov>
2022-08-18 13:25:56 -07:00
kevin-f-ortega
8d5a182d21
Fixed bugs found while compiling for baremetal. (#1462)
* Fixed bugs found while compiling for baremetal.

* line number in which assert occurs has changed due to the addition of the operator=. Updating the expected line numbers to match where the asserts are now.

* addressing pr comments.

* updated line numbers in unit test to match what is auto generated.

* fixed comment
2022-05-24 13:20:03 -07:00
M Starch
ed69e41957
lestarch: removes copyright headers from generated files. Fixes #1345 (#1379)
* lestarch: removing copyright problems

* lestarch: minor pip package correction

* lestarch: removing unmaintained scripts with toxic headers

* lestarch: fixing header-dependent UT
2022-04-13 16:34:33 -07:00
bocchino
3af84c2c25 Merge branch 'fpp' into pass-by 2021-09-29 15:56:40 -07:00
Joshua Anderson
234bb5d176
Replace NULL with nullptr (#1049) 2021-09-29 09:04:52 -07:00
bocchino
a10d260a74 Merge branch 'release/v3.0.0' into pass-by 2021-09-28 13:29:51 -07:00
Joshua Anderson
da3bd77a01 Autocoder: Remove deprecated C style headers 2021-08-31 11:36:26 -07:00
rohandkn
8e02596d4e
Merge branch 'pass-by-logic' into release/v3.0.0 2021-08-20 14:09:25 -05:00
Joshua Anderson
c875ab3b17
Resolve merge conflicts merging from devel branch 2021-08-02 12:14:15 -07:00
rohandkn
7e17023951 Removed heap allocation from enum_xml test 2021-07-23 14:02:15 -04:00
rohandkn
03a87f252f Fixed enum_xml merge issue 2021-07-23 14:01:56 -04:00
Joshua Anderson
1b9c785ce6
Remove void from parameterless functions (#811) 2021-07-14 12:54:01 -07:00
Rohan Dhesikan
b70c2c6933 Changed representation to serializable 2021-06-22 15:13:09 -04:00
Rohan Dhesikan
0429137eb9 Replaced I32 usage with FwEnumStoreType 2021-06-17 12:37:28 -05:00
Rohan Dhesikan
1e245642bd Added U8 unit test for enum representation change 2021-06-15 12:42:16 -05:00
Rohan Dhesikan
64a76e99b5 Added newline to end of file 2021-06-14 14:53:15 -05:00
Rohan Dhesikan
83543f73e1 Added test for default representation type 2021-06-14 14:51:29 -05:00
Rohan Dhesikan
7e26628ff5 Added representation types for enums 2021-06-08 13:54:52 -07:00
rohandkn
ca64fc82af
XML support for enum default values (#681)
* Added support for default attributes in discrete enum declaration in XML

* Added tests and fixed header file include in hpp file

* Added enum fixes to cpp template, changed default documentation, and tested XmlEnumParser.py

* Added enum fixes to cpp template, changed default documentation, and tested XmlEnumParser.py

* Added test for uninitialized value for not-set default values

* Added nothing

* Removed changes from gitignore

* Added default value tests for enum

* Added minor changes to improve readability of enum default value initialization

* Merged changes from upstream f prime

* Resolved Enum XML merge conflict

* Resolved Enum XML merge conflict

* Added change to enum default value test

* Removed unneeded files
2021-06-07 19:01:57 -07:00
bocchino
ed857fa7cb Fix initializers 2020-07-24 08:49:06 -07:00
bocchino
aab7ff82b7 Clean up UnitTestAssert
Add longer testing string of 256 character, so we don't have
to mess round with C-style character arrays
2020-07-23 20:16:31 -07:00
bocchino
8f6689b4f2 Remove extraneous comment 2020-07-23 19:15:26 -07:00
bocchino
56a4e855e4 Revise enum autocoder unit tests 2020-07-23 18:14:29 -07:00
bocchino
78839b0dba Revise enum autocoder unit tests 2020-07-23 18:05:34 -07:00
bocchino
a8dbc82214 Revise enum autocoder unit tests 2020-07-23 17:51:58 -07:00
bocchino
c39cbdaa75 Remove trailing spaces in code 2020-07-23 09:30:44 -07:00
bocchino
deae5f3c97 Revise enum XML unit tests 2020-07-23 09:28:08 -07:00
bocchino
b0569a591c Clean up enum XML test 2020-07-22 20:33:31 -07:00