Recently, I compared char to a C-string, instead of another char. Warnings from Clang and G++ failed to detect that. Does your app does the job?
@MeetingCPP3 жыл бұрын
Can you share some code via Godbolt? Would clang tidy catch it? Compilers often only do what you ask them for...
@MrAbrazildo3 жыл бұрын
@@MeetingCPP [](const string &Str) { return tolower (Str[0]) == "d";} I activated all warnings that came by default in Code::Blocks. I'll try clang tidy.