Commit Graph

13 Commits

Author SHA1 Message Date
Fangrui Song
3fdcfb1f16 Refactor WorkingFiles and CompletionManager
* WorkingFiles::files : vector -> unordered_map
* Add timestamp to WorkingFile

* Rename "comp-preload" thread to "preamble"
* Rename CompletionManager to SemaManager as it is used by "diag" "comp" "preamble"
* Rename clang_complete.* to sema_manager.*
* Merge SemaManager::{preloads,sessions}
* Add initialization option session.maxNum
* In DiagnosticMain, if an included file was modified, cancel the DiagTask and create a PreambleTask instead. The task sets `from_diag` so as to trigger immediate DiagTask after the preamble is built.
2018-12-02 23:22:16 -08:00
Fangrui Song
b8c370ac9a Merge query.hh and query_util.hh 2018-11-27 21:34:33 -08:00
Fangrui Song
af4d81d387 Refactor ReplyOnce; error if InitializeParams.rootUri is null 2018-11-27 21:34:33 -08:00
Fangrui Song
c0b612395c Remove ls prefix from many LSP interfaces
Rename SymbolKind to Kind & lsSymbolKind to SymbolKind
Use textDocumentSync: TextDocumentSyncOptions
2018-11-05 14:13:16 -08:00
Fangrui Song
5af29566b8 Simplify and better compatibility with encodings retaining the feature of low bytes being 1-byte characters 2018-10-30 09:43:27 -07:00
Fangrui Song
ec8731932b *.h -> *.hh 2018-10-28 21:33:19 -07:00
Fangrui Song
123f504d50 Refactor message handler and namespace ccls 2018-10-28 21:18:45 -07:00
Fangrui Song
53632bd920 Add pipeline::{Notify,Reply,ReplyError} and simplify message handling
Delete method.{cc,h}
Rename $ccls/setSkippedRanges to $ccls/publishSkippedRanges
Rename $ccls/publishSemanticHighlighting to $ccls/publishSemanticHighlight; stableId -> id
2018-10-16 01:14:43 -07:00
Fangrui Song
e29056b2db Namespace: improve indexer and don't trace bases in $ccls/member 2018-10-10 00:20:12 -07:00
Fangrui Song
8f40c0c244 Remove clang_utils.* 2018-09-23 20:34:40 -07:00
Fangrui Song
854225bd30 Misc
Move using below #include to make preamble happy
textDocument/references: if no references, first line or last line => list where this file is included
malloc_trim() only if files have been indexed in last cycle
Intern: use CachedHashStringRef
2018-09-23 20:34:38 -07:00
Fangrui Song
22daed7001 Add kind to $ccls/member and iterate all QueryType::def
kind:2 => member functions
kind:3 => nested classes / namespace members
2018-09-23 10:40:41 -07:00
Fangrui Song
70deeca8ad Rename hierarchies to $ccls/{call,inheritance,member}
bool flat = false; -> bool hierarchy = false; (set it to true to enable hierarchical view)

Delete $ccls/callers (which is what $ccls/call does now)
2018-09-13 14:55:27 -07:00