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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] .clang-format-ignore ignores -assume-filename option
        </td>
    </tr>

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

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

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

<pre>
    The filename given by the `-assume-filename` option is used to search for `.clang-format` files, etc., but is not used to match the contents of the `.clang-format-ignore` file.

For example, the C/C++ extension of VSCode uses the `-assume-filename` option to provide a filename, and the content to be formatted is provided from standard input. Therefore, the `.clang-format-ignore` file will not work for that extension.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMksGOmzAQhp_GXEYg40AIBw6bRLxAV70bPIAbYyN7yO6-fWWS7DZVpe7Fc_E38_8zvwxBjxaxYeWRledErjQ531zk5eIuLumc-mheJ4RBG7RyRhj1FS10H0ATAtvzVIawzpg-PrA9B7eQdhZ0gDWgAnIQUPp-gsH5yGS9kXZMB-dnSRGIcGDiBEh9Fmu3UsSto88Ws6R-2qb2zhJaCuCGh4qnjqkerfP4aJwxfmb85fa2zgO-y3kxGOdE_MREe2LiyMQR8J3QhijeDfDzx8kpjALCN9ySg8W7q1YI8nNdcYa06k_Z8WOHcJNKqKLPO6hg8G6GQNIq6RVou6yUweuEHofo6K74P4bhTRuz7e7N-cu2dJokfZnLEtXsVL2rZYJNXom6KHlVFMnUqLwSQpW8GAqZl3V-2O_zoR5QlF1elBUmuhFcFDkXPD-UNS8ycVC9KKv6gGXdHao9KzjOUpvMmOucOT8mOoQVmzzf8bpOjOzQhC1tQjzFQIiYP99ELu3WMbCCGx0ofHUiTWZL6hNYnuFf24BbCfD3ze4HS1ZvmoloCWz3wkTLRDtqmtYu693MRBun3ku6ePcLe2Ki3cwEJtq7n2sjfgcAAP__i8cVaA">