Fangrui Song
083a629f90
Rename some initialization options
...
* Delete index.enabled which can be achieved with index.blacklist: ['.']
* Move completion.include* to completion.include.*
* move largeFileSize to highlight.largeFileSize
2019-11-09 20:03:28 -08:00
Fangrui Song
8d61b1aadb
Revamp codeLens & codeAction
...
b.ref: references of bases
d.ref: references of derived
when b.ref > 0, don't display 0 ref or x bases
2019-11-09 20:03:28 -08:00
Fangrui Song
153e5c0dcc
Construct SourceManager with UserFilesAreVolatile
...
Prettify pipeline
2019-11-09 20:03:28 -08:00
Fangrui Song
7eacd2664f
Support textDocument/{formatting,onTypeFormatting,rangeFormatting}
2019-11-09 20:03:26 -08:00
Fangrui Song
ae19826411
Merge textDocument_did{Change,Close,Open,Save}.cc
2019-11-09 20:01:34 -08:00
Amos Bird
93b5fa198c
Update threaded_queue.h ( #82 )
...
https://en.cppreference.com/w/cpp/language/fold
2019-11-09 19:58:32 -08:00
Fangrui Song
cff6c4714c
Simplify semantic highlighting; improve hover of auto &&
2019-11-09 19:58:32 -08:00
Fangrui Song
a3b982f5d7
Add index.trackDependency and improve pipeline
2019-11-09 19:58:32 -08:00
Fangrui Song
d9541c3222
Add index.initial{Blacklist,Whitelist}
...
index.{blacklist,whitelist}: disable indexes thoroughly
index.initial{Blacklist,Whitelist}: disable initial loading. will still be indexed after opening
2019-11-09 19:58:32 -08:00
Fangrui Song
d5f4f22508
Add GetAdjustedDecl to adjust Decl's that are missed by clangIndex
2019-11-09 19:58:32 -08:00
Fangrui Song
3334b2c4b7
Remove clang_utils.*
2019-11-09 19:58:32 -08:00
Fangrui Song
3dea9486b9
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
2019-11-09 19:58:32 -08:00
Riatre Foo
dc4f45b018
Allow force disabling snippet via client.snippetSupport
2019-11-09 19:58:32 -08:00
Fangrui Song
f82a436536
documentSymbol: ignore TypeParameter
...
Reported by Riatre
2019-11-09 19:58:32 -08:00
Riatre Foo
3abbca6474
Include macros in completion result
2019-11-09 19:58:32 -08:00
Fangrui Song
e24079366b
Add kind to $ccls/member and iterate all QueryType::def
...
kind:2 => member functions
kind:3 => nested classes / namespace members
2019-11-09 19:58:32 -08:00
Fangrui Song
daa6fbf4b8
Misc
2019-11-09 19:58:32 -08:00
Fangrui Song
4ea0dee1c9
Fix spurious "Failed to index" errors
2019-11-09 19:58:32 -08:00
Fangrui Song
bf698b85d4
Publish diagnostics of inferred files and change diagnostics.{onChange,onOpen,onSave} from bool to debounce time
2019-11-09 19:58:32 -08:00
Riatre Foo
a5b8def411
Remove chunks with CK_Information kind from insertText. ( #78 )
...
Without this ccls inserts "size() const" in the following scenario:
std::string text;
text.si| <-- Trigger completion here and pick "size"
2019-11-09 19:58:32 -08:00
Fangrui Song
f0400fdcf2
Delete file_consumer.*
2019-11-09 19:58:32 -08:00
Fangrui Song
28401961ae
Simplify semantic highlighting
2019-11-09 19:58:32 -08:00
Fangrui Song
d9f0de4719
Clean up FileConsumer and improve pipeline
2019-11-09 19:58:32 -08:00
Fangrui Song
110023483a
Improve VarDef::type for textDocument/typeDefinition
2019-11-09 19:58:32 -08:00
Fangrui Song
569a7624a6
intern args
2019-11-09 19:58:32 -08:00
Fangrui Song
97e773081b
intern strings in dependencies and IndexInclude::resolved_path
2019-11-09 19:58:32 -08:00
Fangrui Song
1249eb1eb0
Simplify pipeline and fix race
2019-11-09 19:58:32 -08:00
Fangrui Song
cffc8c8409
Add hierarchicalDocumentSymbolSupport
2019-11-09 19:58:32 -08:00
Fangrui Song
4b2f53aa5d
Add clang.pathMappings to reuse cache files with differect source paths
...
Use `>` as the separator.
2019-11-09 19:58:32 -08:00
Fangrui Song
1208a7d6b2
Remove [spell.start, spell.end) -> [spell.start, extent.end) hack
2019-11-09 19:58:32 -08:00
Fangrui Song
05c4c85bd6
Skip informative scope foo::
2019-11-09 19:58:32 -08:00
Fangrui Song
62d0c49b0a
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)
2019-11-09 19:58:32 -08:00
Fangrui Song
71f2aee644
Better diagnostics
2019-11-09 19:58:32 -08:00
Fangrui Song
db50943cd7
textDocument/documentSymbol
2019-11-09 19:58:32 -08:00
Fangrui Song
d758b78635
Make $ccls/inheritanceHierarchy and textDocument/typeDefinition find declarations if definitions do not exist; spelling ranges of operator=
2019-11-09 19:58:32 -08:00
Fangrui Song
c633ce437b
pipeline improvement for files not having a project entry (e.g. .h)
2019-11-09 19:58:32 -08:00
Fangrui Song
f939b6cc44
Make $ccls/reload reset DB and reload cached index files
...
$ccls/reload is renamed from $ccls/freshenIndex
This is useful when DB (merged index) diverges from backing IndexFile.
Also fix a semantic highlighting bug.
2019-11-09 19:58:32 -08:00
Riatre Foo
082096b613
Normalize paths on Windows
...
1. Normalize paths in LSP document URIs and project root to forward
slash and uppercase drive letters.
2. Normalize paths in compile_commands.json to forward slash and
uppercase drive letters.
3. Normalize paths from directory listing to forward slash. (Drive
letter should be same as input dir path, which is already uppercase
since path of project root dir is normalized)
4. Add llvm::sys::path::convert_to_slash after certain llvm::sys::path
and llvm::fs calls.
2019-11-09 19:58:32 -08:00
Fangrui Song
fa8b032301
diagnostics; use custom DenseMapInfo
2019-11-09 19:58:32 -08:00
Fangrui Song
68fba7989d
Revamp completion and signatureHelp, set completion.detailedLabel: true and add completion.duplicateOptional
2019-11-09 19:58:32 -08:00
Fangrui Song
1b367eeb4b
Misc
2019-11-09 19:58:32 -08:00
Fangrui Song
46db389c81
Make CXXConversion references wider; use getTypedefNameForAnonDecl; improve CXXDestructor CXXConversion spell
2019-11-09 19:58:32 -08:00
Fangrui Song
68a27e746d
Add diagnostics.onSave
2019-11-09 19:58:32 -08:00
Fangrui Song
1df131d411
Reuse preamble (built by "comp-preload") in indexer
2019-11-09 19:58:32 -08:00
Fangrui Song
f1d9a93819
Support empty cacheDirectory and fix cache load
2019-11-09 19:58:32 -08:00
Fangrui Song
0ba4a7f0a9
Implement index.onChange: true; enable spell checking for diagnostics
2019-11-09 19:58:32 -08:00
Fangrui Song
017a91c30e
Add DeclUse as element type of declarations
2019-11-09 19:58:32 -08:00
Fangrui Song
ce72cf7bd9
Remove $ccls/base and clean up; deduplicate codeLens
2019-11-09 19:58:32 -08:00
Fangrui Song
69f749ac9f
Improve hover and documentSymbol
2019-11-09 19:58:32 -08:00
Fangrui Song
8a2438411e
Add clang.excludeArgs and rename diagnostics.onType to onChange
2019-11-09 19:58:32 -08:00