2017-08-09 04:15:04 +08:00
|
|
|
//==-- proto_to_cxx.h - Protobuf-C++ conversion ----------------------------==//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// 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
|
2017-08-09 04:15:04 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Defines functions for converting between protobufs and C++.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <cstddef>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace clang_fuzzer {
|
|
|
|
class Function;
|
2018-06-08 03:17:46 +08:00
|
|
|
class LoopFunction;
|
|
|
|
|
2017-08-09 04:15:04 +08:00
|
|
|
std::string FunctionToString(const Function &input);
|
|
|
|
std::string ProtoToCxx(const uint8_t *data, size_t size);
|
2018-06-08 03:17:46 +08:00
|
|
|
std::string LoopFunctionToString(const LoopFunction &input);
|
|
|
|
std::string LoopProtoToCxx(const uint8_t *data, size_t size);
|
2017-08-09 04:15:04 +08:00
|
|
|
}
|