nasa / fprime

F´ - A flight software and embedded systems framework
https://fprime.jpl.nasa.gov
Apache License 2.0
9.96k stars 1.29k forks source link

Module Annotations do not Display as Doxy Comment in Generated .cpp Files #2660

Open alextsagkas opened 3 months ago

alextsagkas commented 3 months ago
FPP Version 2.0.2
Affected Component all

Problem Description

Modules are not annotable as claimed in the FPP User's Guide.

How to Reproduce

  1. Create a file.fpp with the following contents:
    @ This is a module
    module M {
    constant a = 1
    }
  2. Run the command fpp-to-cpp file.fpp
  3. Inspect the generated file to spot the missing doxy comment.

Expected Behavior

The output of the generated file should be:

#! This is a module
namespace M {

  enum FppConstant_a {
    a = 1
  };

}