<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/149185>149185</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Diagnose vertical white space in single line comments
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend,
clang:diagnostics
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
cor3ntin
</td>
</tr>
</table>
<pre>
The Unicode consortium and the C++ committee are interested in diagnosing Vertical whitespaces (VT, FF) that appear in single-line comments. We should explore a warning to guide this effort.
The motivation for this warning is that if an IDE treats such a vertical character as whitespace (which they are recommended to do), the divergence between the behavior of compilers and IDEs can lead to code spoofing, and therefore security concerns
https://www.unicode.org/reports/tr55/#Spoofing-LB
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p2843r2.pdf
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsU01vgzgQ_TXmMgoCA004cEiaIlXa23a758EewJVjI3tItv9-ZZJuW2lPfHjmvXlvnjFGMzmiTjQn0ZwzXHn2oVM-VI6NywavP7u3meAvZ5TXBMq76AOb9QLoNPBM8CzkScgTKH-5GGYiwEBgHFOgyKTBONAGJ-ejcRO8U2Cj0MJtNkxxQUURhDy8vwn5DH0vZAs8IwMuC2FI3anP0s4aRxsLOY45_E0QZ79aDfTPYn0gQLhhcImEPUyr0QQ8mwg0jj5wLoqjKI5JzcWzuSIb72D04V701Wrind6MgA5ezy_AgZAjxFXNgHD9ml_NGFAxBcD4Q0zScpuNmpM5n5sXge5Ta9JpMu2FbJPY5J42VwoTOUUwEN-I3PZ7oBmvxgfwY5K8GEshbpa_nl8iKHRgCTe4bS9x8X40bkqwj8UEGpMpkdQaDH-m1SkKLt5tmJmXKKqjkL2Q_e12y9f7inMfJiH7QIsPHIXsOTTNVlX9-SDZ_XH6XwS_kNtF1g-ID1alkH1UUqaCSaYv7VUCXXChkF5kIRP6Ig91FWS-6DHTXaXbqsWMunLfyKe2lU2ZzV2Dut3vUalaF0NZKKyGw1jrfVEchkNVD5npElqxL59k0dRlmQ8ax_IwDLLAQj9pKeqCLmhsbu31kqbMTIwrdWXdlocmsziQjdtdkFJZdJOojmPwjslpkVQ8_zh4ZJpNEiTT7Qldwt0N6xRFXVgTOX4zsWFL3fneRN8x2pID9-j8l3X4lfVsDbb7bfdkeF6HXPmLkH3ieDx2S_AfpFjIfpOWLH6ou3by3wAAAP__4uZTPw">