Names, syntax etc. are just placeholders for illustration.
This tool takes a .cpp
file, finds the first and the last function annotation in the file, then searches the entire codebase and "interleaves" all functions that appear between the first/last function in the .cpp
file, based on their offset/address.
Could optionally also prepend/append functions before/after the first/last function in case of "reasonable" offset gap.
The output is the .cpp
file with "comment syntax"-style function annotations interleaved between the functions where they belong, so that checkorder
would still pass on the .cpp
file.