You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clangd correctly produces the diagnostic No header providing "assert" is directly included.
The suggested fix is to insert #include <assert.h>, but we should prefer <cassert>.
<cassert> is listed first in StdSymbolMap.inc, so would in general be preferred, but because the symbol name matches the header name the PreferredHeader signal kicks in.
The text was updated successfully, but these errors were encountered:
The both headers have the same ranking signal, but the <cassert> is the first one in the Headers sequence, we should select it. However the sequence is re-arranged when we perform the deduplications here, we sort the array by name (so assert.h become the first one!)
TL;DR:
assert.h
is getting thePreferredHeader
signal due to name match.Clangd correctly produces the diagnostic
No header providing "assert" is directly included
.The suggested fix is to insert
#include <assert.h>
, but we should prefer<cassert>
.<cassert>
is listed first inStdSymbolMap.inc
, so would in general be preferred, but because the symbol name matches the header name thePreferredHeader
signal kicks in.The text was updated successfully, but these errors were encountered: