mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
1d91ed9beb
The `tuple_tree_generator` component was still heavily treating C++ as a special citizen. This commit normalizes the situation.
45 lines
843 B
C++
45 lines
843 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
#include "revng/ADT/SortedVector.h"
|
|
|
|
#include "Generated/Early/TestClass.h"
|
|
|
|
/* TUPLE-TREE-YAML
|
|
name: TestClass
|
|
type: struct
|
|
fields:
|
|
- name: RequiredField
|
|
type: uint64_t
|
|
- name: OptionalField
|
|
type: uint64_t
|
|
optional: true
|
|
- name: EnumField
|
|
type: TestEnum
|
|
- name: SequenceField
|
|
sequence:
|
|
type: SortedVector
|
|
elementType: uint64_t
|
|
- name: ReferenceField
|
|
reference:
|
|
pointeeType: uint64_t
|
|
rootType: TestClass
|
|
key:
|
|
- RequiredField
|
|
TUPLE-TREE-YAML */
|
|
|
|
namespace ttgtest {
|
|
class TestClass : public ttgtest::generated::TestClass {
|
|
public:
|
|
using ttgtest::generated::TestClass::TestClass;
|
|
};
|
|
} // namespace ttgtest
|
|
|
|
#include "Generated/Late/TestClass.h"
|