<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55311>55311</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-tidy doesn't process @responseFile after -- (but it works with --extra-arg=@responseFile)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sean-mcmanus
</td>
</tr>
</table>
<pre>
With clang 14.0.3 on Windows using
test.cpp
```cpp
#include <sub>
```
test.rsp
```
-I<path>/sub
```
This works:
`"C:\Program Files\LLVM\bin\clang.exe" "<path>/test.cpp" @<path>/test.rsp`
This does not:
`"C:\Program Files\LLVM\bin\clang-tidy.exe" "<path>/test.cpp" -- @<path>/test.rsp`
But this does:
`"C:\Program Files\LLVM\bin\clang-tidy.exe" "<path>/test.cpp" --extra-arg @<path>/test.rsp --`
Bug: It seems like @responseFiles should work after -- and not just in --extra-arg, since replacing the @responseFile with the `-I` contents works. If there's a reason it can't, it would be nice if additional documentation could be added at https://releases.llvm.org/14.0.0/tools/clang/tools/extra/docs/clang-tidy/ (or equivalent for clang 15) explaining the difference between --extra-arg and `--`.
Response files are required on Windows when the command line length limit is exceeded (i.e. due to too many -I, which commonly repros with Unreal Engine projects).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9VE1vozAQ_TVwGQURCFAOHNq0kSp1pdVqP84GBnBr7KxtSvrvd-ykSdpspWoPKwHW-OPNm_fG1Kp9qX5xO0AjmOxhuYriKAUl4ReXrZoNTIbLPohvg_h6_7VobNRst4e5PN4_p5kk5bIRU4sQpGsz1UF6927vBZw27-H24eKeILbMDg4j2Tiwj5G-D9zArPSTCdLr074kWbs4W3_VqtdshA0XaCh-ePj5hYaaS_r68iPcIe0Het_kPZbs1lbx5Zrj_xcyrUIDUtl_5bOwvH35DKnF4rO8biYL9pXbf-CFO6vZgun-Q4K06YJjT0zg3oJBHA0I_oTuuEazVdKgJwZmUJNoveHAOovaqcBk6wSHx8lY4PKcQJCsgXq5QdC4FayhtiYlLoBhdrfBL-Qx9V8eQ6OkRWkPzRXBfefWNVVfGGAExwxdGG6hYZLmrMtE0ez51QiSU1LeAWtbbrmSTJD6zTQSJnMxJTjspB3YArMwWLv19iQbejQKyoEmEuJ5jJSrZeNvaux0VEoYGr0zZ7EvnEZKdVz2xlFApl0pDfh74s9MEA_oKDz8ArIgKQF3pBGXryK1vOuoYqdejXZGfCOtl93J5ZyMzq38dlAWOu8Z0059yqqpzLOfzDwQoMvTqHF0YIJLBCLWkxeCj6QmtSzuGkQnELHnEUbQTghW0aOATr0A2UXSzwNvBo-kpHhxbmtl9rb-kGSWgDvZO3yaf8TGkjplFLZV2pZpyULLrcDqJJe_Kd5Xd6BBYy5a5th-RKymC-bNp1bZJz3vwfT23VnKHU5aVG8N7-ncVEdUAwXO9MOwOFCmkBszoTM2y9LlMhyqNC66Jl-WRZF1ZZG3XbYq8iYj37q2jDEPBatRmCrIbuhqSpzBQ7jrm92GvEriJImzOKdPlhXRqiiz8mrJlkW2rOssJd44Mi6OPRjqylOqp97QouDGnho0ZMbwXiL6dITPJjsoXRlkcjE25NZkQp-_8vz_AK64Ca8">