<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylVU1zozgQ_TX4ooICxIc5cMj4oypbU56txHPYEyWQAM3KEiuJJP732wLseGdndpKsC2PhVvfr13rd1Iqey2PPUDMMjdKsGzllgktm_EErv1ajpMYnWpOzb5U_KC4t0z5lDTmjRhDZ-ZZTWPas-dOgRp0GQbg0iICrRUSeETGGaevFay8u0HPPJBoNlx3qBK8bFAc4CaIIgX3PqNIE4RQ2Bl649cK75Z6FyzU_xglqiEWWGRtA3ujyN-ayESNlyMObZoHFu9tIT4rTyW9Jx8s_zQYEn2uiEZg8vFi8fHsD-8rY92fOHt56ce57MWzYfKCK4HxlMgPttFYaKsUFQ1afXa2sQkIRishUYS6I5UoiSiypiWEeXuht1CgokgoKPwIOZZY19ocuqAWI1iF4cXyFj-M5zkH9zAmIIC7Bad-rE4MfzSh9JrqFpT0NCKK6Mx-IZtIiyjUkoPR5DtvyF0b9m8j-DQN0S1sNTDrek8ctTwSpmbHp59xh_3cQ3wxEfQ_Cb49fDu8BeBjl5PfMbe8U3grSmUWtEYJKTNaOSaaJZfSi45_Uy90vxcd3CXxTl8MSxi2pms6TQ1_xhltxRnPvEYkmPcFpgDgIWjQFsoWjkwb0py99ZoQTCL6b9ldPnD3Px4TYyxwUuskAhDSWgca89NNHZJxuf9VJzuKlu2tFRqPhvvQsrGavoIdUi9iVInIFAPbTuUCyRFJQQ6vVCZ1IoxXIML9A5a8YgAL7q2o2VS3hAk39jiEGQG7Atr__vKuqef35_nBd3z0-7h6O1f7rYXO8_3Jw6cN1E_o9nzeSjeIM7jh8A9sfJJhfpx8gUtbCcf2bh8umqtiLZSANJasKnn5_2B2Pf1y3QAXeRPOGVIL0cEL-Xy36D4LLdJ6mvd-DwJg2_ss6893k96MoaBucBlIR3fTfjfsVLTEtcEFWMM56pctL82TFatSi7K0djNN2vIerg44c6wCaHx6EeLr8OO1-gxZ22RkzMgOLFEd5surLvA7TIsHr9TqmpElolGdZ0VJSZznDcdOuBKmZMCX0BAxHCZ0zhXCDMt2u_n8GvIzDOA6jCEdhmIVFUDQkTZKsxnmKaYIzLwnZCQQcuDiB0t1Kl1PIeuwMGAU31rwaoei8k4xNCUOGFiYGK1_fWk5aH3rT__K9DtT_-UYPVhPXciL6N2t-p-Y>53174</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-tidy: cppcoreguidelines-pro-bounds-array-to-pointer-decay complains about any assert() with glibc 2.34.11.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
reddwarf69
</td>
</tr>
</table>
<pre>
The cppcoreguidelines-pro-bounds-array-to-pointer-decay clang-tidy checks complains about any assert() when using glibc 2.34.11 (Fedora 35).
```
$ cat test.cpp
#include <cassert>
void test() {
assert(1);
}
$ clang-tidy --checks='-*,cppcoreguidelines-pro-bounds-array-to-pointer-decay' test.cpp
Error while trying to load a compilation database:
Could not auto-detect compilation database for file "test.cpp"
No compilation database found in /home/reddwarf/tmp or any parent directory
fixed-compilation-database: Error while opening fixed database: No such file or directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.
1 warning generated.
/home/reddwarf/tmp/test.cpp:4:5: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
assert(1);
^
/usr/include/assert.h:92:51: note: expanded from macro 'assert'
: __assert_fail (#expr, __FILE__, __LINE__, __ASSERT_FUNCTION))
^
/usr/include/assert.h:126:30: note: expanded from macro '__ASSERT_FUNCTION'
# define __ASSERT_FUNCTION __extension__ __PRETTY_FUNCTION__
^
$ rpm -qf /usr/include/assert.h
glibc-headers-x86-2.34-11.fc35.noarch
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydVV1zmzoQ_TX4RQMDCEz8wEPqj5nc6bidxH3oEyMkAWpliSuJJ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