diff --git a/CMakeLists.txt b/CMakeLists.txt index 709fffd28..f66d55c20 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/src/include_complete.cc b/src/include_complete.cc index e6296e1c5..951c0765e 100644 --- a/src/include_complete.cc +++ b/src/include_complete.cc @@ -3,7 +3,6 @@ #include "match.h" #include "platform.h" #include "project.h" -#include "standard_includes.h" #include "timer.h" #include "work_thread.h" @@ -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) @@ -206,14 +204,6 @@ void IncludeComplete::InsertIncludesFromDirectory(std::string directory0, std::move(result.completion_item)); } -void IncludeComplete::InsertStlIncludes() { - std::lock_guard 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 IncludeComplete::FindCompletionItemForAbsolutePath( const std::string& absolute_path) { std::lock_guard lock(completion_items_mutex); diff --git a/src/standard_includes.cc b/src/standard_includes.cc deleted file mode 100644 index 42cc35b3f..000000000 --- a/src/standard_includes.cc +++ /dev/null @@ -1,182 +0,0 @@ -#include "standard_includes.h" - -// See http://stackoverflow.com/a/2029106. -const char* kStandardLibraryIncludes[177] = { - "aio.h", - "algorithm", - "any", - "arpa/inet.h", - "array", - "assert.h", - "atomic", - "bitset", - "cassert", - "ccomplex", - "cctype", - "cerrno", - "cfenv", - "cfloat", - "chrono", - "cinttypes", - "ciso646", - "climits", - "clocale", - "cmath", - "codecvt", - "complex", - "complex.h", - "condition_variable", - "cpio.h", - "csetjmp", - "csignal", - "cstdalign", - "cstdarg", - "cstdbool", - "cstddef", - "cstdint", - "cstdio", - "cstdlib", - "cstring", - "ctgmath", - "ctime", - "ctype.h", - "cuchar", - "curses.h", - "cwchar", - "cwctype", - "deque", - "dirent.h", - "dlfcn.h", - "errno.h", - "exception", - "execution", - "fcntl.h", - "fenv.h", - "filesystem", - "float.h", - "fmtmsg.h", - "fnmatch.h", - "forward_list", - "fstream", - "ftw.h", - "functional", - "future", - "glob.h", - "grp.h", - "iconv.h", - "initializer_list", - "inttypes.h", - "iomanip", - "ios", - "iosfwd", - "iostream", - "iso646.h", - "istream", - "iterator", - "langinfo.h", - "libgen.h", - "limits", - "limits.h", - "list", - "locale", - "locale.h", - "map", - "math.h", - "memory", - "memory_resource", - "monetary.h", - "mqueue.h", - "mutex", - "ndbm.h", - "net/if.h", - "netdb.h", - "netinet/in.h", - "netinet/tcp.h", - "new", - "nl_types.h", - "numeric", - "optional", - "ostream", - "poll.h", - "pthread.h", - "pwd.h", - "queue", - "random", - "ratio", - "regex", - "regex.h", - "sched.h", - "scoped_allocator", - "search.h", - "semaphore.h", - "set", - "setjmp.h", - "shared_mutex", - "signal.h", - "spawn.h", - "sstream", - "stack", - "stdalign.h", - "stdarg.h", - "stdatomic.h", - "stdbool.h", - "stddef.h", - "stdexcept", - "stdint.h", - "stdio.h", - "stdlib.h", - "stdnoreturn.h", - "streambuf", - "string", - "string.h", - "string_view", - "strings.h", - "stropts.h", - "strstream", - "sys/ipc.h", - "sys/mman.h", - "sys/msg.h", - "sys/resource.h", - "sys/select.h", - "sys/sem.h", - "sys/shm.h", - "sys/socket.h", - "sys/stat.h", - "sys/statvfs.h", - "sys/time.h", - "sys/times.h", - "sys/types.h", - "sys/uio.h", - "sys/un.h", - "sys/utsname.h", - "sys/wait.h", - "syslog.h", - "system_error", - "tar.h", - "term.h", - "termios.h", - "tgmath.h", - "thread", - "threads.h", - "time.h", - "trace.h", - "tuple", - "type_traits", - "typeindex", - "typeinfo", - "uchar.h", - "ulimit.h", - "uncntrl.h", - "unistd.h", - "unordered_map", - "unordered_set", - "utility", - "utime.h", - "utmpx.h", - "valarray", - "variant", - "vector", - "wchar.h", - "wctype.h", - "wordexp.h", -}; \ No newline at end of file diff --git a/src/standard_includes.h b/src/standard_includes.h deleted file mode 100644 index 6c50227d1..000000000 --- a/src/standard_includes.h +++ /dev/null @@ -1,4 +0,0 @@ -#pragma once - -// A set of standard libary header names, ie, "vector". -extern const char* kStandardLibraryIncludes[177]; \ No newline at end of file