1 //===-- cxx_proto.proto - Protobuf description of C++ ---------------------===//
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
7 //===----------------------------------------------------------------------===//
10 /// This file describes a subset of C++ as a protobuf. It is used to
11 /// more easily find interesting inputs for fuzzing Clang.
13 //===----------------------------------------------------------------------===//
18 required int32 varnum = 1;
22 required VarRef varref = 1;
26 required int32 val = 1;
47 required Rvalue left = 2;
48 required Rvalue right = 3;
59 message AssignmentStatement {
60 required Lvalue lvalue = 1;
61 required Rvalue rvalue = 2;
66 required Rvalue cond = 1;
67 required StatementSeq if_body = 2;
68 required StatementSeq else_body = 3;
72 required Rvalue cond = 1;
73 required StatementSeq body = 2;
78 AssignmentStatement assignment = 1;
84 message StatementSeq {
85 repeated Statement statements = 1;
89 required StatementSeq statements = 1;