Skip to content

Commit

Permalink
Add default include paths to header completion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed May 12, 2016
1 parent 6cfaafa commit da75268
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2373,6 +2373,7 @@ void Project::fixPCH(Source &source)
void Project::includeCompletions(Flags<QueryMessage::Flag> flags, const std::shared_ptr<Connection> &conn, Source &&source) const
{
CompilerManager::applyToSource(source, CompilerManager::IncludeIncludePaths);
source.includePaths.append(Server::instance()->options().includePaths);
source.includePaths.sort();
Set<Path> seen;
if (flags & QueryMessage::Elisp) {
Expand Down

0 comments on commit da75268

Please sign in to comment.