fixes clang-format handling and applies clang-fomrat changes

This commit is contained in:
2024-08-18 13:21:37 +02:00
parent 31a874b9c6
commit 3c30016830
14 changed files with 154 additions and 122 deletions

View File

@@ -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();