Filter out warnings as error from parser's compile flags

Authored by gracicot on Oct 8 2017, 7:21 PM.

Description

Filter out warnings as error from parser's compile flags

Summary:
The highlighting in my project was all screwed up like in the kdevelop codebase last week.

Now kdevelop seems fine parsing it's own code, but my codebase highlighting was still screwed up. Removing warnings as error in the parser fixed the problem.

Since warnings as error can be enabled with -Werror for all of them, and individually with -Werror=, I thought disabling both. So a list of argument like that:

$ clang++ -Wall -Werror -Werror=unreachable-code

Becomes:

$ clang++ -Wall -Wunreachable-code

Now the parser is no longer reporting warnings as error, but still reporting unreachable code.

Reviewers: KDevelop, kfunk, mwolff, brauch

Reviewed By: brauch

Subscribers: mwolff, brauch, kdevelop-devel

Tags: KDevelop

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

Details

Committed
kfunkOct 8 2017, 7:21 PM
Reviewer
brauch
Differential Revision
D7979: Filter out warnings as error from parser's compile flags
Parents
R32:cf498d9ba5d1: Align plugin factory name with plugin name
Branches
Unknown
Tags
Unknown