Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option description. #652

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions Insights.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,14 @@ const InsightsOptions& GetInsightsOptions()
static llvm::cl::OptionCategory gInsightCategory("Insights"sv);
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
static llvm::cl::OptionCategory gInsightEduCategory(
"Insights-Educational"sv,
"This transformations are only for education purposes. The resulting code most likely does not compile."sv);
//-----------------------------------------------------------------------------

static llvm::cl::opt<bool> gStdinMode("stdin",
llvm::cl::desc("Override source file's content (in the overlaying\n"
"virtual file system) with input from <stdin> and run\n"
"the tool on the new content with the compilation\n"
"options of the source file. This mode is currently\n"
"used for editor integration."sv),
llvm::cl::desc("Read the input from <stdin>."sv),
llvm::cl::init(false),
llvm::cl::cat(gInsightCategory));
//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -375,7 +372,6 @@ int main(int argc, const char** argv)
R"(extern "C" void __cxa_vec_dtor(void *, unsigned int, unsigned int, void* (*destructor)(void *) );)"sv);

llvm::sys::PrintStackTraceOnErrorSignal(argv[0]);
llvm::cl::HideUnrelatedOptions(gInsightCategory);
llvm::cl::SetVersionPrinter(&PrintVersion);

auto opExpected = CommonOptionsParser::create(argc, argv, gInsightCategory);
Expand Down
Loading