mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 21:21:04 +01:00
Make NamedEntityInterface non-movable (#946)
This commit is contained in:
@@ -33,7 +33,12 @@ class NamedEntityInterface {
|
||||
Member,
|
||||
};
|
||||
|
||||
NamedEntityInterface() = default;
|
||||
virtual ~NamedEntityInterface() = default;
|
||||
|
||||
NamedEntityInterface(NamedEntityInterface&&) = delete;
|
||||
auto operator=(NamedEntityInterface&&) -> NamedEntityInterface& = delete;
|
||||
|
||||
// TODO: This is unused, but is intended for casts after lookup.
|
||||
virtual auto named_entity_kind() const -> NamedEntityKind = 0;
|
||||
virtual auto source_loc() const -> SourceLocation = 0;
|
||||
|
||||
Reference in New Issue
Block a user