Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / tools / clang-fuzzer / proto-to-cxx / proto_to_cxx.h
blob204f66de064d418cf84303ea5e2c1fdc0fd613ae
1 //==-- proto_to_cxx.h - Protobuf-C++ conversion ----------------------------==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Defines functions for converting between protobufs and C++.
11 //===----------------------------------------------------------------------===//
13 #include <cstdint>
14 #include <cstddef>
15 #include <string>
17 namespace clang_fuzzer {
18 class Function;
19 class LoopFunction;
21 std::string FunctionToString(const Function &input);
22 std::string ProtoToCxx(const uint8_t *data, size_t size);
23 std::string LoopFunctionToString(const LoopFunction &input);
24 std::string LoopProtoToCxx(const uint8_t *data, size_t size);