about summary refs log tree commit diff homepage
path: root/include
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2017-08-11 20:13:17 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2017-08-11 20:13:17 +0100
commit49f2e54339e186fd68cf6cb3ab775d0e3f643eb8 (patch)
treefec89ff62c9f1cad66d55cc6ec9d25716f2296ac /include
parentd19500eb93083c8cc6bb72bcb54414015830cacb (diff)
downloadklee-49f2e54339e186fd68cf6cb3ab775d0e3f643eb8.tar.gz
Added support for hiding command-line options
Diffstat (limited to 'include')
-rw-r--r--include/klee/CommandLine.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/klee/CommandLine.h b/include/klee/CommandLine.h
index 64930bb2..79f9286b 100644
--- a/include/klee/CommandLine.h
+++ b/include/klee/CommandLine.h
@@ -6,9 +6,11 @@
 #ifndef KLEE_COMMANDLINE_H
 #define KLEE_COMMANDLINE_H
 
-#include "llvm/Support/CommandLine.h"
 #include "klee/Config/config.h"
 
+#include "llvm/ADT/ArrayRef.h"
+#include "llvm/Support/CommandLine.h"
+
 namespace klee {
 
 extern llvm::cl::opt<bool> UseFastCexSolver;
@@ -66,7 +68,15 @@ extern llvm::cl::opt<klee::MetaSMTBackendType> MetaSMTBackend;
 
 #endif /* ENABLE_METASMT */
 
+class KCommandLine {
+public:
+  /// Hide all options except the ones in the specified category
+  static void HideUnrelatedOptions(llvm::cl::OptionCategory &Category);
+
+  /// Hide all options except the ones in the specified categories
+  static void HideUnrelatedOptions(
+      llvm::ArrayRef<const llvm::cl::OptionCategory *> Categories);
+};
 }
 
 #endif	/* KLEE_COMMANDLINE_H */
-