diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2021-08-22 19:00:43 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2021-12-06 16:30:02 +0000 |
commit | 5f7ddb1456d5b926e85710da690bf548ef0c9fc8 (patch) | |
tree | f8845b108c5c07836b95c8229c96cd745fc9fb2c /contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp | |
parent | 3f82687cdf02983d8f3294df4d97b09cf211141b (diff) |
Diffstat (limited to 'contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp b/contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp index aaf7989e2e3d..8a11179e741e 100644 --- a/contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp +++ b/contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp @@ -55,16 +55,20 @@ static void diffGlobal(DifferenceEngine &Engine, Module &L, Module &R, errs() << "No function named @" << Name << " in right module\n"; } +cl::OptionCategory DiffCategory("Diff Options"); + static cl::opt<std::string> LeftFilename(cl::Positional, - cl::desc("<first file>"), - cl::Required); + cl::desc("<first file>"), cl::Required, + cl::cat(DiffCategory)); static cl::opt<std::string> RightFilename(cl::Positional, cl::desc("<second file>"), - cl::Required); + cl::Required, cl::cat(DiffCategory)); static cl::list<std::string> GlobalsToCompare(cl::Positional, - cl::desc("<globals to compare>")); + cl::desc("<globals to compare>"), + cl::cat(DiffCategory)); int main(int argc, char **argv) { + cl::HideUnrelatedOptions({&DiffCategory, &getColorCategory()}); cl::ParseCommandLineOptions(argc, argv); LLVMContext Context; |