[clang] [clang] Implement CWG2428 "Deprecating a concept" (PR #92295)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 16 05:00:14 PDT 2024
================
@@ -8092,6 +8092,18 @@ void Sema::checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto,
diagnoseArgDependentDiagnoseIfAttrs(FD, ThisArg, Args, Loc);
}
+void Sema::CheckConstrainedAuto(TypeSourceInfo *TS) {
+ if (getLangOpts().CPlusPlus20) {
+ if (const AutoType *AutoT = TS->getType()->getAs<AutoType>()) {
----------------
cor3ntin wrote:
I think this check should be kept on the call site and the function can take an `AutoType` as parameter
https://github.com/llvm/llvm-project/pull/92295
More information about the cfe-commits
mailing list