Lightweight 0.20260303.0
Loading...
Searching...
No Matches
Lightweight::MigrationFold::CppEmitOptions Struct Reference

Configuration for EmitCppBaseline. More...

#include <CppEmitter.hpp>

Public Attributes

std::filesystem::path outputPath
 
std::size_t maxLinesPerFile = 5000
 
std::string pluginName
 
bool emitCmake = false
 

Detailed Description

Configuration for EmitCppBaseline.

Definition at line 17 of file CppEmitter.hpp.

Member Data Documentation

◆ outputPath

std::filesystem::path Lightweight::MigrationFold::CppEmitOptions::outputPath

Output .cpp file. May be a <stem>.cpp — the writer will split into <stem>_part01.cpp, <stem>_part02.cpp, ... when needed.

Definition at line 21 of file CppEmitter.hpp.

◆ maxLinesPerFile

std::size_t Lightweight::MigrationFold::CppEmitOptions::maxLinesPerFile = 5000

Threshold for splitting the body across multiple .cpp files. Zero disables splitting and emits a single file.

Definition at line 24 of file CppEmitter.hpp.

◆ pluginName

std::string Lightweight::MigrationFold::CppEmitOptions::pluginName

Optional plugin name. When non-empty (and --emit-cmake is requested by the caller) EmitPluginCmake is invoked alongside the source emission.

Definition at line 27 of file CppEmitter.hpp.

◆ emitCmake

bool Lightweight::MigrationFold::CppEmitOptions::emitCmake = false

When true, emit CMakeLists.txt + Plugin.cpp next to the generated sources so the directory becomes a drop-in plugin.

Definition at line 30 of file CppEmitter.hpp.


The documentation for this struct was generated from the following file: