Bug 420596 - Specify working directory for cppcheck
Summary: Specify working directory for cppcheck
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Analyzer: Cppcheck (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-26 00:33 UTC by Rafal Lalik
Modified: 2020-04-26 00:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Lalik 2020-04-26 00:33:12 UTC
SUMMARY

By default QProcess used to run cppcheck uses WD of the invoking process.

Would be good to use QProcess::setWorkingDirectory() to set WD to the project root, that all the paths in the helper files (e.g. for suppression list option --suppressions-list=<file>) can be relative to the project.

Did not check code for other analyzers but for them the same would be also good.