13namespace Lightweight::CodeGen
41[[nodiscard]] LIGHTWEIGHT_API std::vector<std::vector<CodeBlock>> GroupBlocksByLineBudget(
42 std::vector<CodeBlock>
const& blocks, std::size_t maxLinesPerFile);
62[[nodiscard]] LIGHTWEIGHT_API
WriteResult EmitChunked(std::filesystem::path
const& outputPath,
63 std::vector<CodeBlock>
const& blocks,
64 std::size_t maxLinesPerFile,
65 std::string_view fileHeader = {},
66 std::string_view fileFooter = {});
74LIGHTWEIGHT_API
void EmitPluginCmake(std::filesystem::path
const& outputDir,
75 std::string_view pluginName,
76 std::string_view sourceGlob =
"lup_*.cpp");
A pre-rendered text block plus its line count, ready to be packed into one or more output files by Em...
Result of an EmitChunked call.
std::vector< std::filesystem::path > writtenFiles