Browse Source

NFC, add missing cl::cat option category to clang-scan-deps options to ensure they show up in -help

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371759 91177308-0d34-0410-b5e6-96231b3b80d8
Alex Lorenz 6 years ago
parent
commit
2be1e8b8ee
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tools/clang-scan-deps/ClangScanDeps.cpp

+ 3 - 2
tools/clang-scan-deps/ClangScanDeps.cpp

@@ -150,13 +150,14 @@ static llvm::cl::opt<ScanningMode> ScanMode(
         clEnumValN(ScanningMode::CanonicalPreprocessing, "preprocess",
         clEnumValN(ScanningMode::CanonicalPreprocessing, "preprocess",
                    "The set of dependencies is computed by preprocessing the "
                    "The set of dependencies is computed by preprocessing the "
                    "unmodified source files")),
                    "unmodified source files")),
-    llvm::cl::init(ScanningMode::MinimizedSourcePreprocessing));
+    llvm::cl::init(ScanningMode::MinimizedSourcePreprocessing),
+    llvm::cl::cat(DependencyScannerCategory));
 
 
 llvm::cl::opt<unsigned>
 llvm::cl::opt<unsigned>
     NumThreads("j", llvm::cl::Optional,
     NumThreads("j", llvm::cl::Optional,
                llvm::cl::desc("Number of worker threads to use (default: use "
                llvm::cl::desc("Number of worker threads to use (default: use "
                               "all concurrent threads)"),
                               "all concurrent threads)"),
-               llvm::cl::init(0));
+               llvm::cl::init(0), llvm::cl::cat(DependencyScannerCategory));
 
 
 llvm::cl::opt<std::string>
 llvm::cl::opt<std::string>
     CompilationDB("compilation-database",
     CompilationDB("compilation-database",