Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

[READY] Drop hardcoded standard includes #643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ target_sources(cquery PRIVATE
src/recorder.cc
src/semantic_highlight_symbol_cache.cc
src/serializer.cc
src/standard_includes.cc
src/task.cc
src/test.cc
src/third_party_impl.cc
Expand Down
10 changes: 0 additions & 10 deletions src/include_complete.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "match.h"
#include "platform.h"
#include "project.h"
#include "standard_includes.h"
#include "timer.h"
#include "work_thread.h"

Expand Down Expand Up @@ -119,7 +118,6 @@ void IncludeComplete::Rescan() {
WorkThread::StartThread("scan_includes", [this]() {
Timer timer;

InsertStlIncludes();
InsertIncludesFromDirectory(g_config->projectRoot,
false /*use_angle_brackets*/);
for (const Directory& dir : project_->quote_include_directories)
Expand Down Expand Up @@ -206,14 +204,6 @@ void IncludeComplete::InsertIncludesFromDirectory(std::string directory0,
std::move(result.completion_item));
}

void IncludeComplete::InsertStlIncludes() {
std::lock_guard<std::mutex> lock(completion_items_mutex);
for (const char* stl_header : kStandardLibraryIncludes) {
completion_items.push_back(BuildCompletionItem(
stl_header, true /*use_angle_brackets*/, true /*is_stl*/));
}
}

optional<lsCompletionItem> IncludeComplete::FindCompletionItemForAbsolutePath(
const std::string& absolute_path) {
std::lock_guard<std::mutex> lock(completion_items_mutex);
Expand Down
182 changes: 0 additions & 182 deletions src/standard_includes.cc

This file was deleted.

4 changes: 0 additions & 4 deletions src/standard_includes.h

This file was deleted.