cppcheck: pass "-i" & path as separate argument items, not as single string

Authored by kossebau on Aug 7 2018, 3:55 PM.

Description

cppcheck: pass "-i" & path as separate argument items, not as single string

Summary:
Passing "-i /some/path/CMakeFiles" as single string with the args for the
cppcheck invocation results in the string being passed quoted due to the
space inside, '-i /some/path/CMakeFiles'. Seems this still results in the
wanted processing, but it looks strange in the console log.

Test Plan: cppcheck still works as before and skips the CMakeFiles subfolder.

Reviewers: KDevelop, antonanikin, apol

Reviewed By: KDevelop, apol

Subscribers: kdevelop-devel

Tags: KDevelop

Differential Revision: https://phabricator.kde.org/D14675