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
I have not found any way to fix code like this without suppressing with NOLINT or similar.
#include<iostream>// Including this triggers:// inclusion of deprecated C++ header 'string.h'; consider using 'cstring' instead [modernize-deprecated-headers]
#include<string.h>// Including this instead triggers:// no header providing "strsignal" is directly included [misc-include-cleaner]
#include<cstring>intmain() {
std::cout << strsignal(2) << "\n";
return0;
}
The warning from modernize-deprecated-headers makes sense but shouldn't misc-include-headers allow using the modern C++ headers like cstring here without warning?