Bug 353896

Summary: kdev-cppcheck fails with multiple "Extra Parameters"
Product: [Applications] kdevelop Reporter: peje66
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: dfighter1985
Priority: NOR Keywords: junior-jobs
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.0.0
Sentry Crash Report:
Attachments: Proposed patch

Description peje66 2015-10-14 13:34:24 UTC
When giving cppcheck more than one extra parameter in the cppcheck config, cppcheck treats them as one parameter.

if I give "--inconclusive --enable=all"
cppcheck: error: unrecognized command line option: "--inconclusive --enable=all".

if I give " --inconclusive --enable=all" it works. Notice the space before  --inconclusive.



Reproducible: Always
Comment 1 peje66 2016-03-10 06:36:49 UTC
Created attachment 97808 [details]
Proposed patch
Comment 2 Kevin Funk 2016-03-10 20:11:55 UTC
commit 42e67e1a55bc21e26bcbea17225106530461b3a3
Author: Peje Nilsson <peje66@gmail.com>
Date:   Thu Mar 10 20:46:07 2016 +0100

    Don't reinvent the wheel.
    
    Reviewers: kfunk
    
    Reviewed By: kfunk
    
    Subscribers: kdevelop-devel
    
    Differential Revision: https://phabricator.kde.org/D1110