Fangrui Song
aa9cdad54f
Use clangTooling
2019-10-24 01:01:20 -07:00
Fangrui Song
b759798e5d
Support uses from other files and improve references in macro replacement-list
2019-10-24 01:01:20 -07:00
Fangrui Song
24e99fd767
Cleanup
2019-10-24 01:01:20 -07:00
Fangrui Song
16448e98d1
Add some ObjC kinds
2019-10-24 01:01:20 -07:00
Fangrui Song
d816e1b918
$ccls/publishSemanticHighlighting: use pair<int,int> in place of lsRange
2019-10-24 01:01:20 -07:00
Fangrui Song
3e8f8fea64
clangIndex
2019-10-24 01:01:20 -07:00
Fangrui Song
f9befbd5fb
pipeline
2019-10-24 01:01:20 -07:00
Fangrui Song
8e4d62212b
Misc changes to clangIndex
2019-10-24 01:00:37 -07:00
Fangrui Song
96e0f0fafa
clangIndex
2019-10-24 00:55:39 -07:00
Fangrui Song
9b54e5391c
Clean up clang_tu; retrieve comments with clang::ASTContext::getRawCommentForAnyRedecl
2019-10-24 00:55:39 -07:00
Fangrui Song
103aa711d3
First draft: replace libclang indexer with clangIndex
2019-10-24 00:53:16 -07:00
Fangrui Song
b784685c61
diagnostics
2019-10-24 00:18:13 -07:00
Fangrui Song
a96d9613f4
Put static const
into IndexVar::def (a definition is not required unless odr-used)
2019-10-24 00:17:28 -07:00
Fangrui Song
9b9bf1cd19
Fix .. in compdb path; better type alias
2019-10-24 00:17:28 -07:00
Fangrui Song
1830103ec6
Internalize strings & remove diagnostics_publisher.cc
2019-10-24 00:17:28 -07:00
Fangrui Song
d21476d7ee
Inject anonymous struct/union into parent scopes
2019-10-24 00:17:28 -07:00
Fangrui Song
732e002b13
Infer system include paths from CompilerInvocation
2019-10-24 00:17:28 -07:00
Fangrui Song
d165a0b0ea
Use clang::PrintingPolicy and remove type_printer
2019-10-24 00:17:28 -07:00
Fangrui Song
806a05b234
Add Config->largeFileSize; pure virtual or defaulted methods are definitions; fix $ccls/callHierarchy
2019-10-24 00:17:28 -07:00
Fangrui Song
f0559bba54
Remove Timer and PerformanceImportFile
2019-10-24 00:17:28 -07:00
Fangrui Song
34dc1e93e9
Remove WithFileContent & lex_utils.{cc,h}
2019-10-24 00:17:28 -07:00
Fangrui Song
42bcf2b58f
$ccls/memberHierarchy: add field offset
2019-10-23 21:56:51 -07:00
Fangrui Song
a962061698
Simplify pipeline
2019-10-23 21:56:51 -07:00
Fangrui Song
0ba8f2a42c
Remove atomic_object.h and add workspace/didChangeConfiguration placeholder
2018-03-01 18:15:33 -08:00
Fangrui Song
1cc5b85ef4
Fix -Wunused-variable when CINDEX_VERSION >= 47
2018-02-28 08:35:06 -08:00
Fangrui Song
214eded2cb
Support listing local variables in memberHierarchy and better handling of locations for typedef; remove cquery_call_tree.cc
2018-02-26 21:32:58 -08:00
Fangrui Song
09dd20226f
Rename FuncDefDefinitionData::locals to vars, remove constants from EnumDecl's vars
2018-02-26 17:53:37 -08:00
Fangrui Song
7743480b13
Use clang_getTypedefDeclUnderlyingType and expand alias_of in memberHierarchy
2018-02-26 00:31:16 -08:00
Fangrui Song
95797be730
Rename *DefDefinitionData::{base,parents} to bases and add inheritanceHierarchy{Initial,Expand}
2018-02-25 18:52:30 -08:00
Fangrui Song
dc18f04759
Strip scope qualifiers of detailed_name in $cquery/memberHierarchy{Initial,Expand}
2018-02-25 17:03:24 -08:00
Fangrui Song
b98c9a4575
Remove UniqueAdd* and uniquify uses
after libclang callbacks.
...
This removes some duplication in `uses`.
2018-02-23 15:08:19 -08:00
Nathan Ridge
9f4b30ca8c
Fix semantic highlighting regressions from switch from ClangSymbolKind to lsSymbolKind ( fixes #469 )
2018-02-22 16:11:35 -08:00
Fangrui Song
61b5ef4fa0
Reduce <iostream>; don't include rapidjson in language_server_api.h; add role to lsReferenceContext
2018-02-22 14:39:46 -08:00
Jacob Dufault
01fe19f280
Format code
2018-02-21 23:34:32 -08:00
Fangrui Song
702cdbe9bb
Group initialization options and rename $cquery/typeHierarchyTree to $cquery/inheritanceHierarchy
2018-02-21 21:57:15 -08:00
Fangrui Song
1a4da727da
Index namespace alias and MSVC __interface; add --enable-assert to waf; add lexical container to xref requests
2018-02-20 22:13:58 -08:00
Fangrui Song
909c2e247a
Simplify query_utils
2018-02-20 18:30:58 -08:00
Fangrui Song
40ab5900de
Add TypeDefDefinitionData::declarations
...
Constructors and destructors are also included in declarations. But this is not necessarily bad, as textDocument/definition on class spelling names can jump to constructors as well as declarations.
2018-02-20 14:52:32 -08:00
Fangrui Song
f9d7361953
Add Config::compilationDatabaseCommand
...
If specified, this is an external command that provides the JSON compilation database, instead of compile_commands.json
2018-02-19 16:20:02 -08:00
Fangrui Song
488f6cc962
Add lsSymbolKind::StaticMethod (extension) and set parentKind
2018-02-18 19:01:22 -08:00
Fangrui Song
9217393a78
Add semantic highlighting test file
...
Don't mark destructors as type references.
2018-02-18 14:50:11 -08:00
Fangrui Song
58d6547411
Remove ClangSymbolKind in favor of lsSymbolKind
2018-02-18 11:43:28 -08:00
Fangrui Song
f3134d564c
Simplify Index* Query*
2018-02-18 10:43:27 -08:00
Fangrui Song
afe86ef146
Use def.spell for semantic parent and def.extent for lexical parent
...
Use language identifier in the spec
Remove unreliable Boltzmann distribution
2018-02-14 21:54:57 -08:00
Fangrui Song
0c4d82667f
Clean up some -Wcovered-switch-default default labels
2018-02-13 13:03:31 -08:00
Fangrui Song
10437aa642
Disable variable PrettyPrint #if CINDEX_VERSION >= 47 and allow trunk libclang in tests
2018-02-12 19:15:39 -08:00
Fangrui Song
de1e350c59
Role : uint8_t -> uint16_t; Add Read,Write to Role (#if CINDEX_VERSION >= 48)
...
Fix textDocument/documentSymbol
2018-02-12 10:15:43 -08:00
Fangrui Song
afd38cbce9
Add Id<QueryFile> file; to Use and simplify query.cc
2018-02-11 20:43:54 -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
8ab45cb43d
std::string {hover,comments} -> NTString (null-terminated string)
...
Typically, sizeof(std::string) = 32, sizeof(NTString) = 8
hover and comments are usually empty and thus wasteful to spend 24*2 bytes for them
2018-02-10 22:53:35 -08:00