From 49f2e54339e186fd68cf6cb3ab775d0e3f643eb8 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Fri, 11 Aug 2017 20:13:17 +0100 Subject: Added support for hiding command-line options --- include/klee/CommandLine.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'include') 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 UseFastCexSolver; @@ -66,7 +68,15 @@ extern llvm::cl::opt 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 Categories); +}; } #endif /* KLEE_COMMANDLINE_H */ - -- cgit 1.4.1