48#define INSIGHTS_OPT(opt, name, deflt, description, category) CreateFile(opt, deflt, description);
49#include "../InsightsOptions.def"
53 ofstream mdFile{
"CommandLineOptions.md"};
55 if(not mdFile.is_open()) {
59 mdFile <<
"# C++ Insights command line options {#command_line_options}\n\n";
61 std::vector<std::string> options{};
63#define INSIGHTS_OPT(opt, name, deflt, description, category) options.emplace_back(opt);
64#include "../InsightsOptions.def"
66 sort(options.begin(), options.end());
68 for(
const auto& opt : options) {
69 std::string linkName{opt};
70 std::replace(linkName.begin(), linkName.end(),
'-',
'_');
73 mdFile <<
"* [" << opt <<
"](@ref " << linkName <<
")\n";
static bool CreateFile(const std::string &optionName, bool optionDefault, const char *description)
Create a markdown file which contains the information about the option.