Skip to content

Commit

Permalink
Issue Andersbakken#605. Don't consider system headers for dependency …
Browse files Browse the repository at this point in the history
…checking.
  • Loading branch information
Andersbakken committed Feb 12, 2016
1 parent 29bfeea commit 1e85499
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/IndexerJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ IndexerJob::IndexerJob(const Source &s,
seen.insert(node);
std::function<bool(const DependencyNode *node)> func = [&](const DependencyNode *node) {
for (const auto &inc : node->includes) {
if (seen.insert(inc.second) && (server->isActiveBuffer(node->fileId) || func(inc.second))) {
if (seen.insert(inc.second)
&& !Location::path(node->fileId).isSystem()
&& (server->isActiveBuffer(node->fileId) || func(inc.second))) {
return true;
}
}
Expand Down

0 comments on commit 1e85499

Please sign in to comment.