| //===-- flags_parser.h ------------------------------------------*- C++ -*-===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| #ifndef SCUDO_FLAGS_PARSER_H_ |
| #define SCUDO_FLAGS_PARSER_H_ |
| #include "string_utils.h" |
| enum class FlagType : u8 { |
| void registerFlag(const char *Name, const char *Desc, FlagType Type, |
| void parseString(const char *S); |
| void printFlagDescriptions(); |
| void parseStringPair(const char *Name, const char *Value); |
| static const u32 MaxFlags = 20; |
| const char *Buffer = nullptr; |
| void reportFatalError(const char *Error); |
| bool runHandler(const char *Name, const char *Value, char Sep); |
| void reportUnrecognizedFlags(); |
| #endif // SCUDO_FLAGS_PARSER_H_ |