mirror of
https://github.com/Minres/RISCV-VP.git
synced 2026-01-13 09:46:57 +00:00
fixes clang-format handling and applies clang-fomrat changes
This commit is contained in:
@@ -8,22 +8,22 @@
|
||||
#define PLATFORM_SRC_CLIPARSER_H_
|
||||
|
||||
#include <boost/program_options.hpp>
|
||||
#include <scc/report.h>
|
||||
#include <memory>
|
||||
#include <scc/report.h>
|
||||
|
||||
class CLIParser {
|
||||
public:
|
||||
CLIParser(int argc, char *argv[]);
|
||||
CLIParser(int argc, char* argv[]);
|
||||
|
||||
virtual ~CLIParser();
|
||||
|
||||
bool is_valid() { return valid; }
|
||||
|
||||
const boost::program_options::variables_map &vm() { return vm_; }
|
||||
const boost::program_options::variables_map& vm() { return vm_; }
|
||||
|
||||
bool is_set(const char *option) { return vm_.count(option) != 0; }
|
||||
bool is_set(const char* option) { return vm_.count(option) != 0; }
|
||||
|
||||
template <typename T> const T &get(const char *option) { return vm_[option].as<T>(); }
|
||||
template <typename T> const T& get(const char* option) { return vm_[option].as<T>(); }
|
||||
|
||||
private:
|
||||
void build();
|
||||
|
||||
Reference in New Issue
Block a user