mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 13:40:11 +01:00
Add Iterate to the list of non-Clang operators (#7369)
This allows us to use non-generic C++ range types in Carbon range-for loops.
This commit is contained in:
@@ -39,6 +39,7 @@ static auto GetClangOperatorKind(Context& context, SemIR::LocId loc_id,
|
||||
case CoreIdentifier::Destroy:
|
||||
case CoreIdentifier::As:
|
||||
case CoreIdentifier::ImplicitAs:
|
||||
case CoreIdentifier::Iterate:
|
||||
case CoreIdentifier::UnsafeAs:
|
||||
case CoreIdentifier::Copy: {
|
||||
// TODO: Support destructors and conversions.
|
||||
|
||||
+1181
-434
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user