Bug 353896 - kdev-cppcheck fails with multiple "Extra Parameters"
Summary: kdev-cppcheck fails with multiple "Extra Parameters"
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2015-10-14 13:34 UTC by peje66
Modified: 2016-03-10 20:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0
Sentry Crash Report:


Attachments
Proposed patch (455 bytes, patch)
2016-03-10 06:36 UTC, peje66
Details

Note You need to log in before you can comment on or make changes to this bug.
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