Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fpp-tools] Revise switches for C++ code gen #330

Closed
4 tasks done
bocchino opened this issue Sep 26, 2023 · 1 comment · Fixed by #333
Closed
4 tasks done

[fpp-tools] Revise switches for C++ code gen #330

bocchino opened this issue Sep 26, 2023 · 1 comment · Fixed by #333
Assignees
Labels
code generation Issues related to code generation tools Issues related to FPP tools

Comments

@bocchino
Copy link
Collaborator

bocchino commented Sep 26, 2023

Changes requested during the F Prime integration:

fpp-to-cpp

  1. When -u is enabled, only unit test base class code should be generated, not component autocode.
  2. Add a flag -a (automatic test setup) to govern the generation of TesterHelpers.cpp. When -a is present, TesterHelpers.cpp is generated when -u is present and -t is not present. Otherwise TesterHelpers.cpp is generated when -u and -t are both present.

fpp-filenames

  1. Add an -a flag and make the behavior match that of fpp-to-cpp.

fpp-depend

  1. Eliminate the -t option. If necessary in the next round of integration, we can write generated template files to separate files with the suffix .template. This may not be necessary, depending on how the integration is done.
  2. Have the -u flag write the unit test base class files (and only those files) to a separate file, instead of adding the unit test files to the autocoded files reported by -g.
  3. Add an -a flag. When -a is present,TesterHelpers.cpp is included with the autocode files reported by -u. Otherwise it is not so included.

Tasks

  • Update fpp-filenames and unit tests
  • Update fpp-to-cpp and unit tests
  • Update fpp-depend and unit tests
  • Update User's Guide
@bocchino bocchino added the tools Issues related to FPP tools label Sep 26, 2023
@bocchino bocchino added this to the C++ Unit Test Code milestone Sep 26, 2023
@bocchino bocchino self-assigned this Sep 26, 2023
@bocchino bocchino changed the title [fpp-depend] Revise generated file name output [fpp-tools] Revise switches for generating files Sep 27, 2023
@bocchino
Copy link
Collaborator Author

@LeStarch FYI.

@bocchino bocchino added the code generation Issues related to code generation label Sep 29, 2023
@bocchino bocchino changed the title [fpp-tools] Revise switches for generating files [fpp-tools] Revise switches for C++ code gen Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code generation Issues related to code generation tools Issues related to FPP tools
Projects
Development

Successfully merging a pull request may close this issue.

1 participant