<div dir="ltr"><div>Hello,<br><br>We've run into a problem using libclang for cpp support in KDevelop: once an #included file is not found, a fatal error is generated which disables all further diagnostics.<br><br></div><div>In the context of KDevelop, it is quite important that this be downgraded to a non-fatal error so that further missing includes and issues can be marked in the IDE. It's further desirable that the IDE support is still helpful in the absence of a missing but unimportant #include.<br><br></div><div>I've found no way to do this with compiler flags; err_pp_file_not_found has no category so -Wno-fatal-errors=foo can't help (not clear if that's the correct method even if there was a category).<br><br></div><div>Is there a way to do this that I missed seeing? Can this diagnostic be re-mapped from fatal to error?<br><br></div><div>If there's no existing way to do this, could some interface or compiler flag be added so that err_pp_file_not_found_not_fatal is used instead? What would be the correct place/way to configure this?<br><br></div><div>Thanks,<br><br></div><div>-Olivier JG<br></div></div>