1*e5dd7070Spatrick //==-- proto_to_cxx.h - Protobuf-C++ conversion ----------------------------==// 2*e5dd7070Spatrick // 3*e5dd7070Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*e5dd7070Spatrick // See https://llvm.org/LICENSE.txt for license information. 5*e5dd7070Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*e5dd7070Spatrick // 7*e5dd7070Spatrick //===----------------------------------------------------------------------===// 8*e5dd7070Spatrick // 9*e5dd7070Spatrick // Defines functions for converting between protobufs and C++. 10*e5dd7070Spatrick // 11*e5dd7070Spatrick //===----------------------------------------------------------------------===// 12*e5dd7070Spatrick 13*e5dd7070Spatrick #include <cstdint> 14*e5dd7070Spatrick #include <cstddef> 15*e5dd7070Spatrick #include <string> 16*e5dd7070Spatrick 17*e5dd7070Spatrick namespace clang_fuzzer { 18*e5dd7070Spatrick class Function; 19*e5dd7070Spatrick class LoopFunction; 20*e5dd7070Spatrick 21*e5dd7070Spatrick std::string FunctionToString(const Function &input); 22*e5dd7070Spatrick std::string ProtoToCxx(const uint8_t *data, size_t size); 23*e5dd7070Spatrick std::string LoopFunctionToString(const LoopFunction &input); 24*e5dd7070Spatrick std::string LoopProtoToCxx(const uint8_t *data, size_t size); 25*e5dd7070Spatrick } 26