<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/68769>68769</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[CrossTranslationUnit]Assertion `hasBodyOrInit(ToDecl) && "Imported Decl should have body or init."
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mzyKi
</td>
</tr>
</table>
<pre>
I use clang-static-analyzer to execute cross translation unit analysis.In the following testcases,clang-tidy will crash and give the assertion same with title.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxEkcGOozwQhJ_GXFpBxiQQDhxmJooU_Yf_MvsAjd2AV8aO3E2ymadfwa52Tj6Uq1T1NTL7KRL16vSuTpcCV5lT7pev13--GJJ79TdYmcAGjNOBBcXbA0YMry_KIAnoF9lVCGxOzCAZIwcUnyKs0QvsX9lzeYsgM8GYQkhPHycQYrHIxMp8_EkX717w9CGAzcgzYHQw-QftRmSmvOcyLgRPLzOIl0Bl4fradXWHBfVV07Van-u6LeZej4NtqLNuxEZbPGI3auvQYdueRtuNhe-NNnWlq0q3lanasutMfSYc8ET16LBWR00L-lCG8FjKlKfCM6_UN-e26YqAAwXeyRkT6Qm7qIzZQOZ-8xyGdWJ11MGz8HfKXnwzfmzUPr-h_Yhe1Ony9m-savSM_J7c6_9820Rz_kwXskGZDpRplGlAGXNb7ikLOdgk4DmtwcGMD4LthpAy-OilVMYUaw79LHJnVb8pc1XmOnmZ16G0aVHmunX8-xzuOf0kK8pc92WszHVf_jsAAP__JCq-cw">