Fix Qt 5.5 compatibility -- no constFirst/Last methods.
Summary:
QList and QVector both gained these in Qt 5.6, but we claim to support 5.5 (because it's found in Ubuntu 16.04 LTS).
None of these are in performance-relevant code, so I don't believe it's worthwhile adding ifdefs; just revert this patch whenever 5.5 support is dropped.
0a29544...
by
Guillaume Racicot <email address hidden>
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.