Files
revng-revng/include/revng/Model/Argument.h
Alessandro Di Federico 863652f480 Introduce OriginalName in the type system
The goal of `OriginalName` is to keep track of the original name of a
symbol upon import.

In future, this will also be used to promote it to `CustomName`.
2022-01-27 11:51:03 +01:00

49 lines
1.1 KiB
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "revng/ADT/RecursiveCoroutine.h"
#include "revng/Model/Identifier.h"
#include "revng/Model/QualifiedType.h"
#include "revng/Model/VerifyHelper.h"
/* TUPLE-TREE-YAML
name: Argument
doc: |
The argument of a function type. It features an argument index (the key), a
type and an optional name
type: struct
fields:
- name: Index
type: uint64_t
- name: Type
type: model::QualifiedType
- name: CustomName
type: Identifier
optional: true
- name: OriginalName
type: std::string
optional: true
key:
- Index
TUPLE-TREE-YAML */
#include "revng/Model/Generated/Early/Argument.h"
class model::Argument : public model::generated::Argument {
public:
using generated::Argument::Argument;
Identifier name() const;
public:
bool verify() const debug_function;
bool verify(bool Assert) const debug_function;
RecursiveCoroutine<bool> verify(VerifyHelper &VH) const;
void dump() const debug_function;
};
#include "revng/Model/Generated/Late/Argument.h"