mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 00:20:31 +00:00
Make NamedEntityInterface non-movable (#946)
This commit is contained in:
1 parent
e8d9b7675b
commit
a9bb06ca14
10 files changed
+82
-61
No files matched your search
@@ -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