mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:01:08 +01:00
This modifies scripts/check_header_guards.py to add the CARBON_ prefix; everything else is pre-commit.
23 lines
882 B
C++
23 lines
882 B
C++
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
#ifndef CARBON_COMMON_FUZZING_PROTO_TO_CARBON_H_
|
|
#define CARBON_COMMON_FUZZING_PROTO_TO_CARBON_H_
|
|
|
|
#include "common/fuzzing/carbon.pb.h"
|
|
|
|
namespace Carbon {
|
|
|
|
// Builds a Carbon source from `compilation_unit`. The logic tries to produce a
|
|
// syntactially valid Carbon source for all cases, even if the input protocol
|
|
// buffer is invalid (like a variable declaration with an empty `name` field).
|
|
// This is done to reduce the number of inputs the fuzzer framework generates
|
|
// when trying to produce lexically valid source.
|
|
auto ProtoToCarbon(const Fuzzing::CompilationUnit& compilation_unit)
|
|
-> std::string;
|
|
|
|
} // namespace Carbon
|
|
|
|
#endif // CARBON_COMMON_FUZZING_PROTO_TO_CARBON_H_
|