<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/68213>68213</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-include-cleaner - replaces chrono with bits/chrono
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-include-cleaner
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
PiotrZSL
</td>
</tr>
</table>
<pre>
Issues found:
a)
```
+#include <bits/basic_string.h>
+#include <string>
```
b)
```
-#include <chrono>
+#include <bits/chrono.h>
```
Tested version from LLVM 17.0.2
misc-include-cleaner provide more information:
```
160 - DiagnosticName: misc-include-cleaner
161 DiagnosticMessage:
162 Message: 'no header providing "std::operator""s" is directly included'
163 FilePath: 'some-file.cpp'
164 FileOffset: 982
165 Replacements:
166 - FilePath: 'some-file.cpp'
167 Offset: 52
168 Length: 0
169 ReplacementText: "#include <bits/basic_string.h>\n"
```
And:
```
304 - DiagnosticName: misc-include-cleaner
305 DiagnosticMessage:
306 Message: 'no header providing "std::chrono::ceil" is directly included'
307 FilePath: 'some-file.cpp'
308 FileOffset: 3133
309 Replacements:
310 - FilePath: 'some-file.cpp'
311 Offset: 43
312 Length: 0
313 ReplacementText: "#include <bits/chrono.h>\n"
```
When `<chrono>` is already included.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVV2PozYU_TXmxQLZ13yEBx5mdxqpUrZdtatW6ktl4AKujB3ZzrT77ysISaDNZHbHikhi7j3nfpxrS-9VbxArkn0g2XMkT2GwrvqsbHB__HqIatt-rX70_oSedvZkWiKeCHsmbHlKAiVdNnK2fM5_4QMBoUyjTy1SIj7WKngC-1p61fzpg1OmTwYifnjF_Gxxe79Fr1_ljbcwzeCssa_TLFGdzdbxbFG_oA_Y0hd0XllDO2dHejj89onyImEJrEsyKt_EC0PcaJQGHT06-6JapKN1SJXprBtlUNbcyrnl4zmjMX1WsjfWB9X8JEck4onSe-gXF06ndXP6hN7LHq8cPAd626OXRaAwlg4o22ugyvSUAPgw91s82SM6GawjANM2AaDK01Y5bIL-Spd4WgLFhUks4Hul8bMMw4qQQOHtiHGnNCbN8bjySmf7n7vOY7h6lDu4vM8WiF_wqGWDI5rgV-nl15ziDfEDxoLe1n94p5VdqXf0gKbfJELptVvlCmYV3Bf8J5wDgG8chuyjmYzvTtT8fFrP4NZAsHRO_btkI1j2hmwEy98pm8vwzb9R6Td1I1jxDt0ItrunG8GFuBiUj4QjOPte4QjOHwsnvVBzeCAcwcX7hLM-r96UzO8DGjrtrY_DnE2tkNqhbG-dSM4eUVuJthSljLDieZmnAILn0VDxLJWCQ9PugGX1TtSsbjjUWZumRQqyjFQFDARnLOUAGSuTPKs7ISHNWNF1u7YkKcNRKp1o_TIm1vWRmq6XKt8BF5GWNWo_30YAjZam_59qAaaLylWTf1yfek9SppUP_oYYVNBY3XWnMXXnMnt6Lgb9W4WBbuoanZyuhhCOs0ZgT2DfqzCc6qSxI4H9RLR8xUdn_8ImENjPeUwgcyr_BgAA___CdxQw">