-
Notifications
You must be signed in to change notification settings - Fork 31
fpp filenames
This tool writes out the names of XML and C++ files generated from FPP source files.
Options:
-
-a
: Enable unit test auto helpers. -
-t
: Write the names of implementation template files. -
-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.
-
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
andfpp-to-cpp
on fl and importing the dependencies of fl. -
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 runningfpp-to-cpp
with the corresponding options.
Procedure:
-
Parse each of the files in fl, generating a list tul of translation units. When parsing, recursively resolve include specifiers.
-
Walk the AST and identify the definitions that cause XML or C++ files to be generated.
-
Write out the names of the generated files.