================
@@ -14277,6 +14325,113 @@ StmtResult Sema::ActOnCXXForRangeIdentifier(Scope *S,
SourceLocation IdentLoc,
: IdentLoc);
}
+static ImplicitConversionKind GetConversionKind(QualType FromType,
----------------
AaronBallman wrote:
That's along the lines of what I was thinking, yes. I was hoping we could use
something like `Sema::TryImplicitConversion()` to get us an implicit conversion
sequence. From there, we could check to see if it's a standard conversion
sequence to get the object which gives access to
`StandardConversionSequence::getNarrowingKind()` to see if it's been narrowed.
https://github.com/llvm/llvm-project/pull/73099
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits