[clang] Add missing declarations of explicit template instantiations. (PR #86964)

2024-03-29 Thread Timm Baeder via cfe-commits

https://github.com/tbaederr closed 
https://github.com/llvm/llvm-project/pull/86964
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[clang] Add missing declarations of explicit template instantiations. (PR #86964)

2024-03-28 Thread via cfe-commits

llvmbot wrote:




@llvm/pr-subscribers-clang

Author: Thomas Köppe (tkoeppe)


Changes

Found with -Wundefined-func-template.

---
Full diff: https://github.com/llvm/llvm-project/pull/86964.diff


1 Files Affected:

- (modified) clang/lib/AST/Interp/ByteCodeStmtGen.h (+1) 


``diff
diff --git a/clang/lib/AST/Interp/ByteCodeStmtGen.h 
b/clang/lib/AST/Interp/ByteCodeStmtGen.h
index ab7a591fb798ee..d7e6e5042c2740 100644
--- a/clang/lib/AST/Interp/ByteCodeStmtGen.h
+++ b/clang/lib/AST/Interp/ByteCodeStmtGen.h
@@ -82,6 +82,7 @@ class ByteCodeStmtGen final : public ByteCodeExprGen 
{
   OptLabelTy DefaultLabel;
 };
 
+extern template class ByteCodeStmtGen;
 extern template class ByteCodeExprGen;
 
 } // namespace interp

``




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


[clang] Add missing declarations of explicit template instantiations. (PR #86964)

2024-03-28 Thread Thomas Köppe via cfe-commits

tkoeppe wrote:

I don't have commit access and would welcome if someone else could merge this.

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


[clang] Add missing declarations of explicit template instantiations. (PR #86964)

2024-03-28 Thread Thomas Köppe via cfe-commits

https://github.com/tkoeppe created 
https://github.com/llvm/llvm-project/pull/86964

Found with -Wundefined-func-template.

From 8576f816ce9873cf4212134d7cb9c985c4e04a53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= 
Date: Thu, 28 Mar 2024 15:44:40 +
Subject: [PATCH] Add missing declarations of explicit template instantiations.

Found with -Wundefined-func-template.
---
 clang/lib/AST/Interp/ByteCodeStmtGen.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/lib/AST/Interp/ByteCodeStmtGen.h 
b/clang/lib/AST/Interp/ByteCodeStmtGen.h
index ab7a591fb798ee..d7e6e5042c2740 100644
--- a/clang/lib/AST/Interp/ByteCodeStmtGen.h
+++ b/clang/lib/AST/Interp/ByteCodeStmtGen.h
@@ -82,6 +82,7 @@ class ByteCodeStmtGen final : public ByteCodeExprGen 
{
   OptLabelTy DefaultLabel;
 };
 
+extern template class ByteCodeStmtGen;
 extern template class ByteCodeExprGen;
 
 } // namespace interp

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits