clang: Make sure include paths are unique

Authored by aspotashev on Sep 14 2016, 8:55 AM.

Description

clang: Make sure include paths are unique

Summary:
std::unique() is not enough because it only removes consecutive
duplicates.

In my case Path(url).parent() pushed into the list at line
"paths.push_front(Path(url).parent());" was duplicating an existing
include path probably generated by CMake.

BUG: 361716

Reviewers: mwolff, kfunk

Reviewed By: kfunk

Subscribers: brauch, kfunk, kdevelop-devel

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

Details

Committed
aspotashevSep 14 2016, 8:56 AM
Reviewer
kfunk
Differential Revision
D2765: clang: Make sure include paths are unique
Parents
R32:4b2c681fd5d2: Perf: Prefer QVector over QList
Branches
Unknown
Tags
Unknown