[clang] [clang][NFC] Move `concepts::createSubstDiagAt` from AST to Sema (PR #113294)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 04:57:03 PDT 2024


================
@@ -13435,6 +13435,13 @@ class Sema final : public SemaBase {
     return CodeSynthesisContexts.size() > NonInstantiationEntries;
   }
 
+  using EntityPrinter = llvm::function_ref<void(llvm::raw_ostream &)>;
+
+  /// \brief create a Requirement::SubstitutionDiagnostic with only a
+  /// SubstitutedEntity and DiagLoc using Sema's allocator.
----------------
zyn0217 wrote:

nit: Probably this could be more precise: we're in fact constructing the object on ASTContext, so maybe we can say "using ASTContext's allocator"?

https://github.com/llvm/llvm-project/pull/113294


More information about the cfe-commits mailing list