The clazy plugin currently raises an error (dialog) when it cannot find the subject of an individual file check in compile_commands.json. Some reasons why this can go wrong even if the file in question is still in its original location:
- the source dir was moved and replaced with a symlink to the new location
- KDevelop accesses the file via a different path as cmake did when it generated compile_commands.json (on systems where location on disk can have more than a single unique/canonical/normalised $PWD). The user may have opened it via a different access path, for instance, or executed cmake outside of KDevelop.
This patch converts local file paths to their canonical (normalised) version before comparison (and before storing them in the list of project files). As a result, the plugin will be able to check every file that is actually part of the current project.
The conversion is done internally only so only the plugin's behaviour is modified.