PLC-lang / rusty

Structured Text Parser and LLVM Frontend
GNU Lesser General Public License v3.0
181 stars 47 forks source link

Encode complex types in section mangling #1199

Open CohenArthur opened 1 month ago

CohenArthur commented 1 month ago

Needs #1198

This PR allows the section mangler to encode more type information in order to specify structs, enumerations, arrays and aliases. There are still some missing bits, e.g. regarding the length of arrays

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 94.33962% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 91.11%. Comparing base (fedc06d) to head (be78df6). Report is 5 commits behind head on master.

Files Patch % Lines
src/codegen/generators/pou_generator.rs 90.90% 1 Missing :warning:
src/codegen/generators/section_names.rs 95.00% 1 Missing :warning:
src/codegen/generators/variable_generator.rs 90.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1199 +/- ## ========================================== - Coverage 95.62% 91.11% -4.51% ========================================== Files 150 153 +3 Lines 42657 44816 +2159 ========================================== + Hits 40789 40833 +44 - Misses 1868 3983 +2115 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.