mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Note that ptr.h also includes an enable_if change, to help avoid https://bugs.llvm.org/show_bug.cgi?id=51881
25 lines
649 B
C++
25 lines
649 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 EXECUTABLE_SEMANTICS_AST_CLASS_DEFINITION_H_
|
|
#define EXECUTABLE_SEMANTICS_AST_CLASS_DEFINITION_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "executable_semantics/ast/member.h"
|
|
#include "executable_semantics/ast/source_location.h"
|
|
|
|
namespace Carbon {
|
|
|
|
struct ClassDefinition {
|
|
SourceLocation loc;
|
|
std::string name;
|
|
std::vector<Nonnull<Member*>> members;
|
|
};
|
|
|
|
} // namespace Carbon
|
|
|
|
#endif // EXECUTABLE_SEMANTICS_AST_CLASS_DEFINITION_H_
|