Slide 35
Slide 35 text
35
Problems & Answers #1
// MyCommandLine.h
//==---------------------------------------------------------------------------------------------
static cl::SubCommand CheckSubcommand("check", "Check source with naming rules.");
static cl::opt CheckInputSrc(cl::Positional, cl::desc(""), cl::Required,
cl::sub(CheckSubcommand));
static cl::opt CheckInputConfig("config", cl::desc("Specific your config file(.toml)."),
cl::value_desc("File"), cl::cat(CppNameLintCategory),
cl::sub(CheckSubcommand));
static cl::opt CheckOutputJson("jsonout", cl::desc("Generate result to a JSON file."),
cl::value_desc("File"), cl::cat(CppNameLintCategory),
cl::sub(CheckSubcommand));
static cl::list CheckIncludes("include", cl::desc("Specific header folers."),
cl::value_desc("-include Dir1 ..."), cl::ZeroOrMore,
cl::cat(CppNameLintCategory), cl::sub(CheckSubcommand));