I figured out codecompletion and checked what would happen if you set a non-existent variable
in the "Build Options ... =>Search directories => Compiler"
I in custom me Code::Blocks add:
// TODO: OMLK 15.11.2023
if(dir.Find("(invalid)") != wxNOT_FOUND) {
wxString bad_path = dir; bad_path.Replace(wxT("\\"), wxT("/"));
Manager::Get()->GetLogManager()->LogError(wxString::Format("Incorrect path: %s in %s:%d",bad_path,__FILE__,__LINE__));
CCLogger::Get()->Log(wxString::Format("Incorrect path: %s in %s:%d", bad_path,__FILE__,__LINE__).c_str());
}
(https://forums.codeblocks.org/index.php?action=dlattach;topic=25592.0;attach=11787;image) (https://forums.codeblocks.org/index.php?action=dlattach;topic=25592.0;attach=11786;image)
(https://forums.codeblocks.org/Themes/default/images/icons/clip.gif) codecompletion_invalid_path.png (https://forums.codeblocks.org/index.php?action=dlattach;topic=25592.0;attach=11786) (203.21 kB, 1280x1024)