[clang] [clang] Track function template instantiation from definition (PR #112241)

2025-01-30 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Thanks for the report, this is the reduced reproducer: ```C++ template struct QWindowSystemHelper { template static void handleEvent() { QWindowSystemHelper::handleEvent(); } }; template <> template void QWindowSystemHelper::handleEvent() { static_assert(__is_same(Eve

[clang] [clang] Track function template instantiation from definition (PR #112241)

2025-01-30 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: I pushed a revert for this myself now after running tests, to see that it didn't tie in to any other recent change. https://github.com/llvm/llvm-project/pull/112241 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [clang] Track function template instantiation from definition (PR #112241)

2025-01-30 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: This change breaks compiling Qt. To reproduce on e.g. Linux, clone https://github.com/qt/qtbase, check out the tag `v6.8.1`, configure and build it like this: ``` $ cmake .. \ -G Ninja \ -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ -D

[clang] [clang] Track function template instantiation from definition (PR #112241)

2025-01-29 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/112241 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Track function template instantiation from definition (PR #112241)

2025-01-29 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/112241 >From c1f3c40382b79a3aa3fb422b6f7382a1f7d7c6f5 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Sat, 28 Sep 2024 14:28:58 -0300 Subject: [PATCH] [clang] Track function template instantiation from definition

[clang] [clang] Track function template instantiation from definition (PR #112241)

2025-01-13 Thread via cfe-commits
cor3ntin wrote: @mizvekov did you just forget to merge? https://github.com/llvm/llvm-project/pull/112241 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Track function template instantiation from definition (PR #112241)

2024-10-14 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/112241 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Track function template instantiation from definition (PR #112241)

2024-10-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This fixes instantiation of definition for friend function templates, when the declaration found and the one containing the definition have different template contexts.

[clang] [clang] Track function template instantiation from definition (PR #112241)

2024-10-14 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/112241 This fixes instantiation of definition for friend function templates, when the declaration found and the one containing the definition have different template contexts. In these cases, the the function declar