Fangrui Song
27d641bf64
Add Query*::file_id to allow textDocument/hover on declarations
...
Also change StorageClass storage to uint8_t
2018-07-20 23:48:19 -07:00
Fangrui Song
4612aa062b
$ccls/publishSemanticHighlighting: support both line/character-style and position-style ranges
2018-07-14 14:03:51 -07:00
Fangrui Song
0c50ee79f2
Cleanup
2018-07-12 12:42:02 -07:00
Fangrui Song
7d1d4b410b
$ccls/publishSemanticHighlighting: use pair<int,int> in place of lsRange
2018-07-08 20:38:23 -07:00
Fangrui Song
c6553c79ab
clangIndex
2018-07-08 20:38:16 -07:00
Fangrui Song
7dd0241a4c
First draft: replace libclang indexer with clangIndex
2018-07-07 15:43:05 -07:00
Fangrui Song
66580104ba
Add Config->largeFileSize; pure virtual or defaulted methods are definitions; fix $ccls/callHierarchy
2018-06-01 16:06:21 -07:00
Fangrui Song
39a17a9fd7
Remove WithFileContent & lex_utils.{cc,h}
2018-05-31 21:07:59 -07:00
Fangrui Song
b35d3c8fa8
Remove $ccls/random; remove DB::symbols; decrease DB::entities grow rate
2018-05-31 12:55:13 -07:00
Fangrui Song
c9f0b65062
Simplify pipeline
2018-05-28 16:13:44 -07:00
Fangrui Song
8fabe3d1ae
Replace loguru with a custom logger
2018-05-27 15:14:33 -07:00
Fangrui Song
ba45e7ca63
cmake: link against zlib; use StringMap
2018-05-16 00:51:07 -07:00
Fangrui Song
984c6367d1
Redesign import_pipeline.cc and mitigate race (duplicate Query*::uses for initial indexing)
2018-05-06 21:56:14 -07:00
Fangrui Song
fac5c56682
Use usr as primary key and remove id; simplify import pipeline
...
Remove on_id_map, IndexMergeIndexUpdates
2018-05-01 22:45:01 -07:00
Fangrui Song
97b1592475
Simplify lsp.h and fix qual_name_offset when SetVarDetail is called on an existing variable
2018-04-09 00:31:34 -07:00
Fangrui Song
6e68e9edbd
Simplify
2018-04-07 21:04:20 -07:00
Fangrui Song
348240b44f
Add qual_name_offset to Index* structs; improve workspace/symbol and documentSymbol
2018-04-06 00:18:02 -07:00
Fangrui Song
d9bcaecf25
Use global config.
2018-04-04 00:29:27 -07:00
Fangrui Song
9aca6119ed
.
2018-03-31 13:38:43 -07:00
Fangrui Song
6c8fee4141
.
2018-03-31 09:47:27 -07:00
Fangrui Song
89dd4b066b
.
2018-03-31 00:53:39 -07:00
Fangrui Song
da649891ae
Resurrection of ccls
2018-03-30 22:02:26 -07:00
Jacob Dufault
33bd27b913
Work on e2e tests
2018-03-24 10:26:17 -07:00
Jacob Dufault
cad6dcda0c
Remove global list of message ids.
...
Also do some naming cleanup. Also remove xmacros.
2018-03-21 21:05:25 -07:00
Jacob Dufault
c7e5299bee
Reformat
2018-03-19 19:51:42 -07:00
Fangrui Song
3995a9d5b8
Add initialization options highlight.{blacklist,whitelist}
2018-03-09 00:23:32 -08:00
Fangrui Song
15ec6036e7
Set parentKind of Func/Var from declarations if they have no definition
2018-03-07 00:56:47 -08:00
Fangrui Song
57f2c325f0
parentKind in semantic highlighting: SymbolKind -> lsSymbolKind
2018-03-07 00:34:20 -08:00
Fangrui Song
8e70a1078e
Use call sites for callHierarchy
2018-02-28 17:56:49 -08:00
Fangrui Song
411d49951d
Reduce structs in language_server_api.h and clarify query_utils.h
2018-02-23 15:57:11 -08:00
Fangrui Song
d2bc737068
Semantic highlighting of macros
2018-02-22 09:43:53 -08:00
Fangrui Song
e785d3f477
Keep a list of QueryType
2018-02-21 23:02:28 -08:00
Fangrui Song
488f6cc962
Add lsSymbolKind::StaticMethod (extension) and set parentKind
2018-02-18 19:01:22 -08:00
Fangrui Song
58d6547411
Remove ClangSymbolKind in favor of lsSymbolKind
2018-02-18 11:43:28 -08:00
Fangrui Song
0f03146daa
Change optional<...> Query{Func,Type}::Def to forward_list
2018-02-17 23:24:09 -08:00
Fangrui Song
cfdb6bf422
Change optional<...> QueryVar::Def to forward_list
...
Related to #403
2018-02-17 22:09:03 -08:00
Fangrui Song
aee79b3617
variable_type -> type; remove parent_{id,kind} (they should be inferred from Def::spell; clean up SymbolIdx, Reference, SymbolRef
2018-02-11 10:28:26 -08:00
Fangrui Song
c28426bbb4
Remove QueryLocation and clean up
2018-02-09 19:13:50 -08:00
Fangrui Song
aa125e34f3
Work around SIGSEGV and simplify SymbolIdx
2018-02-09 17:05:17 -08:00
Fangrui Song
c4bd7ef44b
Rename Reference members
2018-02-09 14:12:35 -08:00
Fangrui Song
6933870962
Change symbol id from size_t to RawId (uint32_t currently)
2018-02-03 10:35:17 -08:00
Chao Shen
57ea5f7cb9
Check the function name appearance before publish semantic highlight.
2018-02-01 16:27:31 +08:00
Fangrui Song
93269ecfd4
Change std::string FuncDefDefinition::short_name to ShortName()
2018-01-30 22:40:02 -08:00
Fangrui Song
41f87887bb
Change std::string VarDefDefinition::short_name to ShortName()
2018-01-30 22:04:55 -08:00
Jacob Dufault
0eb7d415d7
usr_to_file uses new NormalizedPath type
2018-01-29 16:56:00 -08:00
Fangrui Song
09d7da2893
Don't emit semantic highlight for operators or lambda ( #369 )
...
Fixes #368
2018-01-29 09:28:17 -08:00
Fangrui Song
bdb880e0a5
Serialize VarDefDefinitionData::{parent_kind,parent_id}
2018-01-28 12:34:31 -08:00
Fangrui Song
5763201838
Remove is_type_member & VarDefDefinitionData::declaring_type
...
Rename ClangStorageClass to StorageClass
Add semantic_parent & semantic_parent_kind (but not serialized yet)
Move query.h SymbolKind to indexer.h SymbolKind and make it uint8_t
2018-01-27 20:46:06 -08:00
Fangrui Song
723c78409f
Move is_operator from indexer to semantic highlighting
2018-01-26 10:08:56 -08:00
Fangrui Song
351e7b6c95
Add ClangStorageClass storage; to {Func,Var}DefDefinitionData and semantic highlighting.
...
This can be used to differentiate local/global variables, template parameters.
Also make msgpack deserialization robust.
2018-01-26 09:47:42 -08:00