================
@@ -14277,6 +14325,113 @@ StmtResult Sema::ActOnCXXForRangeIdentifier(Scope *S, 
SourceLocation IdentLoc,
                                                       : IdentLoc);
 }
 
+static ImplicitConversionKind GetConversionKind(QualType FromType,
----------------
Fznamznon wrote:

Thanks for the review?
Just to double check that I understand right, are you suggesting to drop the 
whole approach that reuses C++ narrowing check due to need to keep this 
`ImplicitConversionKind` construction code, or you're suggesting to somehow 
find existing code that builds up `StandardConversionSequence` and reuse so 
there is no additional code that depends on these conversion kinds?

I think I can somehow integrate into `InitializationSequence`, but at the 
moment I'm having troubles with creating `StandardConversionSequence` object 
like how it is done there for C++ narrowing check because it has special 
initialization step which is used only for C++.

https://github.com/llvm/llvm-project/pull/73099
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to