Skip to content

fpp filenames

Rob Bocchino edited this page Sep 29, 2023 · 14 revisions

This tool writes out the names of XML and C++ files generated from FPP source files.

Options:

  1. -a: Enable unit test auto helpers.

  2. -t: Write the names of implementation template files.

  3. -u: Write the names of unit test files.

Input: A list fl of files: either the single file stdin or a list of files specified on the command line.

Output: A list of file names, written one per line to standard output, with no other punctuation.

  1. By default, the elements of the list are the names of the XML and C++ autocode files that would be generated by running fpp-to-xml and fpp-to-cpp on fl and importing the dependencies of fl.

  2. If one or more of the options -a, -t, or -t are present, then the listed C++ files are the ones that would be generated by running fpp-to-cpp with the corresponding options.

Procedure:

  1. Parse each of the files in fl, generating a list tul of translation units. When parsing, recursively resolve include specifiers.

  2. Walk the AST and identify the definitions that cause XML or C++ files to be generated.

  3. Write out the names of the generated files.