<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69450>69450</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] run_clang_tidy.py should accept a directory to export clang-tidy fixes
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
amgebauer
</td>
</tr>
</table>
<pre>
Currently, the only option to get the found issues in a machine readable way is `-export-fixes` which combines the temporary yaml files of each compilation unit into one large one. For large projects, this is not feasable since combining (in the way it is implemented) is very slow.
In the documentation of `-export-fixes`, it says:
> Create a yaml file to store suggested fixes in, which can be applied with clang-apply-replacements.
`clang-apply-replacements` however accepts not a file, but a directory.
I propose to add another parameter `-export-directory` where the yaml-files are saved to. If this parameter is not given, a temporary directory is used that is deleted afterwards.
The use case in our project is that we generate a code quality report (https://docs.gitlab.com/ee/ci/testing/code_quality.html) of the found issues. We need to convert the yaml files into a format that Gitlab accepts.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0VEGPqzgT_DXOpRVETMKEA4f3zXxZvftKexw1dgNeGZu1m-Tx71c2zExGu3tJRKu7XF1VNsZoBkfUisv_xOXtgAuPPrQ4DdThQuHQeb22r0sI5NiuQr4CjwTe2RX8zMY7YA8DcS73fnEaTIwLRTAOECZUo3EEgVBjZwkeuIKJIOrySL9mH_jYm18URV3CYzRqBOWnzjiKGZBpmn3AsMKKk4XeWIrgeyDcOmdjMZNYnGEwjj14R2AxDIkkFXDzYf-cg_-TFMdtBxMTDecZesKYqUXjFO3nGzeAkFfjMo1MmtOAmWZLEzkmLWSTKncKK0TrH4Uo30T5Y_v9uQ1qr5bUvZH0_b_tnfgYhohrFNWPZxBR_R9eAyET4JcASfDIPhDEZRgoMmnIWGBcwtplRAcdAc6zNaThYXgEZdENx1Raj4FmiyqvEr8xF3X5X33JpNE_6E4BUCmaeVMQM690drekL20CKfZh_S5JcmD2MS-AWgM6zyMFmDHgREzhWZ1PjC0ZFCgLmlQ4bjHApADeSQP7An72m6lfYLu9g7lT1gWf0vSJnrqWmDBGzAZrspQUxZ4pPDDo7-r8PlLqB4WRUsL9Ej6ClaYzyoNgIEdh8015TfDXgtbwCoHScilZI_Oc_ZY3IW_aq1gMhi12hfKTkDciIW_KCHljimzckD69pvcdqhh5simCvv_H1SvgDwJHWRlQ3t0p8Kd6-yXKdwWh92FC3nj_ls__cLY46LbSTdXggdpT3bzUVVlV9WFsu5eqqc667ki9VNdGNhW-XPpeN80V1VVWB9PKUlan8nQ9nS7XS13056YqZX1uzqUu--osziVNaGxh7X0qfBgOmXhbN-dLebDYkY35RZJyyyIbvQop0wsV2jR07JYhinNpTeT4BcOGbX7LnsYubxAW954r76lSzCvE0S9W77s-RzZJtkUQvjC2-3VYgm2_-zYYHpcPyxKL_e-4Z0LI22aJkLe83N8BAAD__7i_3GA">