[clang] Improve the -Wundefined-func-template diagnostic note for invisible template functions (PR #129031)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 10 03:09:19 PDT 2025
================
@@ -759,13 +759,11 @@ Sema::BuildDependentDeclRefExpr(const CXXScopeSpec &SS,
TemplateArgs);
}
-bool Sema::DiagnoseUninstantiableTemplate(SourceLocation PointOfInstantiation,
- NamedDecl *Instantiation,
- bool InstantiatedFromMember,
- const NamedDecl *Pattern,
- const NamedDecl *PatternDef,
- TemplateSpecializationKind TSK,
- bool Complain /*= true*/) {
+bool Sema::DiagnoseUninstantiableTemplate(
+ SourceLocation PointOfInstantiation, NamedDecl *Instantiation,
+ bool InstantiatedFromMember, const NamedDecl *Pattern,
+ const NamedDecl *PatternDef, TemplateSpecializationKind TSK,
+ bool Complain /*= true*/, bool *Unreachable) {
----------------
ilya-biryukov wrote:
On a tangental note, I think having Clangd show the default argument would help to workaround the lack of these annotations, so I filed #130571.
I don't think we have any tools to check these.
https://github.com/llvm/llvm-project/pull/129031
More information about the cfe-commits
mailing list