<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/100841>100841</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format 19-rc1 regression: `
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format,
            regression
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          vogelsgesang
      </td>
    </tr>
</table>

<pre>
    In our internal code base, we have a function templated with a member function pointer.
Upgrading from clang-format-17 to 19.1.0-rc1, clang-format proposed the following change, which is incorrect / unexpected

```patch
-template <llvm::Value* (llvm::IRBuilderBase::*func)(llvm::Value*, llvm::Value*, const llvm::Twine&, bool, bool)>
+template <llvm::Value* (llvm::IRBuilderBase::* func)(llvm::Value*, llvm::Value*, const llvm::Twine&, bool, bool)>
 llvm::Value* LLVMTranslator::generateArithmetic(const IRBinaryOp& op) {
 ```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8U8Fq40AM_Rr5IhJsTRLbBx-SdgOFLgul2_t4LNuzjGfMzDjZ_v3iON2k0NvCgrHgSX56T7JkCLqzzBVsD7B9TOQUe-erk-vYhI6DtF1Su-a9erLoJo_aRvZWGlSuYaxlYKAHPDP28sQosZ2sitpZjDyMRkZu8KxjjxIHHmr2t4LRXbjWkD5Cuv85dl422nbYejegMtJ2q9b5QcZVlmN0mJXrbJ2uvMrmjvcFOHo3usANxp6xdca488ykemm7RV-vVY86oLbKec8qItARJ8u_R1aRm0XE9b1Ll2eUUfULtvqwgyAejDkNIPYg9m_STAy0R6Dihj69HCZtGvaHeTwXCGg_GwcqP1V-fD9r_BpVzoZ4l3s9a8tAuzlXO2dusQTx7WqADv8uF_-f3i-o8Pn57furlzYYGZ1fkh1b9jLy3uvYDxy1AiqWhk8vB22lf_8xAu3QjUAlQn648v_daNJUoilFKROuspwoFQVtRNJXZdNyXddFWexy1Ypmm4lt0zSizmuRUZEluqKUNmlOOxLbnMS6FRsq27wlkdfbui1gk_IgtVnPZtbOd4kOYeIqS9NikyVG1mzC5cqI7n9eIAJ6ACLPnecQtLMztH1MfDVTreqpC7BJjQ4x3MijjoarT1eQlfNx4B2PuFhPJm-qPsYxXDZ7BDp2OvZTvVZuADpepr-E1ejdL1YR6HhRH4COVwOniv4EAAD__6unTEc">