Semantic analysis is great, except when it generates an error on every line due to doing some code when you're missing headers such as on a different system than where the code is built. I would like to disable semantic analysis on this file but there doesn't seem to be any way to do that, or even to disable semantic analysis at all. There are options in "Configure KDevelop" -> "Language Support" to disable highlighting of problems, but those problems will still cause a pop-up to appear when you mouse over them in the source code. Ideally, I think this would appear in the right click menu similar to "Reformat Source", with the global option appearing in the "Analyze" menu.
I think "touch .kdev_ignore" still works for directories. There is also the #ifndef IN_IDE_PARSER ... #endif trick. Another workaround would be to use a different file ending for these files (e.g. .c_arm), although that may of course confuse other tools. Other than that, I could imagine that an option could be added to the project filter plugin which does this ("exclude and do not parse" or so) ... With the right-click menu, the problem I see is a bit that you do not have a UI which visualizes the current state of what is being ignored. How the problem tooltips work needs rework anyways, though, they are relatively annoying right now.
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
The situation has improved in some ways by showing the errors on the end of the line where the error is detected, however I am still unable to find any way to disable `Semantic analysis` on a per file basis, or even in the entire project. Sven's suggestion of using the `Project Filter` plugin to exclude files doesn't work on specific files as they are still part of the project. His suggestion to use a different file extension also doesn't seem to work as the semantic analysis is still reporting errors even after changing the extension, as though it is analysing it as C. I would still like to be able to right click in a given file and have an option to disable semantic analysis on this file.