Fangrui Song
a37782dc0c
Fix ComputeGuessScore and delete dead code
...
Thanks to CXuesong
2019-01-12 00:40:49 +08:00
Fangrui Song
72ee893d26
Merge maybe.hh into utils.hh
2019-01-12 00:40:49 +08:00
Fangrui Song
5a5165faa8
Merge query.hh and query_util.hh
2019-01-12 00:40:49 +08:00
Fangrui Song
5a723b489a
Refactor Matcher to use pimpl and merge match.hh into utils.hh
2019-01-12 00:40:49 +08:00
Fangrui Song
e6510f7428
Make EmptyParam empty & rewrite LruCache
2019-01-12 00:40:49 +08:00
Fangrui Song
0606b95754
constexpr std::string_view -> const std::string_view
...
This works around gcc 7.2/clang rC347417 which have a bad interaction with libstdc++'s implementation of P0426
constexpr std::string_view also emits a string_view object in .rodata that cannot be optimized out by clang (which means larger object file size)
So use good old const.
2019-01-12 00:40:49 +08:00
Fangrui Song
9ffbf3c52e
codeAction: use codeActionProvider: CodeActionOptions and respect CodeActionParams::range
2019-01-12 00:40:49 +08:00
Fangrui Song
eacbc1e1e7
Make DocumentLink::range narrower
...
Thanks to Riatre #135
2019-01-12 00:40:49 +08:00
Fangrui Song
7a363d2259
completion: delete insertText; don't set filterText if it is the same as label
...
It decreases Content-Length: from 32K to 25K for the following case:
#include <bits/stdc++.h>
int main() { std::| }
Also
* make results deterministic when completion text is empty
* sort by newText, label, filterText
2019-01-12 00:40:49 +08:00
Fangrui Song
3bcb5f23a4
serializer: make visitor/vis value/v consistent
2019-01-12 00:40:49 +08:00
Fangrui Song
58e996366d
Refactor ReplyOnce; error if InitializeParams.rootUri is null
2019-01-12 00:40:49 +08:00
Fangrui Song
f6fca76088
indexer: handle DecltypeType and empty main file; diag: -Wno-unused-function for headers
...
Don't replace name with qualified name in Cls::*name
2019-01-12 00:40:49 +08:00
Fangrui Song
afa654f0d1
.ccls: add %objective-c %objective-cpp
...
Also allow multiple directives on a line, e.g. %c %cpp -DFOO
2019-01-12 00:40:47 +08:00
Fangrui Song
8c73bbc3c7
Use clang::isIdentifierBody and clean up utils/working_files
2019-01-09 15:19:23 +08:00
Fangrui Song
b31a1c6b3e
hierarchicalDocumentSymbol: support SymbolKind::Function declaration and uniquify by range
...
Also ensure selectionRange is a subrange of range, otherwise VSCode won't show the item.
Use detailed_name for 'detail'
2019-01-09 15:19:23 +08:00
Fangrui Song
06dff21720
README: add client feature table
2019-01-09 15:19:23 +08:00
Nikolaus Wittenstein
6767b9bf24
Add Apache LICENSE file ( #121 )
2019-01-09 15:19:23 +08:00
Dso Tsin
77bec58a62
Fix VS2017 build issues and add Appveyor CI script ( #118 )
2019-01-09 15:19:23 +08:00
Fangrui Song
63a510ac21
Use SM.isWrittenInMainFile; suppress -Werror in preamble
...
SM.isWrittenInMainFile is to work around preamble bug: spurious err_pp_unterminated_conditional with circular #include
2019-01-09 15:19:23 +08:00
Fangrui Song
a24fe5a386
hierarchicalDocumentSymbol: display member function declarations
2019-01-09 15:19:23 +08:00
Fangrui Song
5736dd094d
Fix some MSVC 2017 errors
...
Thanks to Dso Tsin!
2019-01-09 15:19:23 +08:00
Fangrui Song
eeeb03c068
If clang >= 8, delete search path detection and use Sema::CodeCompleteIncludedFile
2019-01-09 15:19:23 +08:00
Fangrui Song
94d2b5821e
Work around relative --sysroot=
2019-01-09 15:19:23 +08:00
Fangrui Song
58c701d98a
Improve semantic highlight in templates
2019-01-09 15:19:23 +08:00
Fangrui Song
e0e00cb48a
Reduce MAKE_REFLECT_STRUCT in lsp.hh
...
Position -> Pos; lsPosition -> Position
2019-01-09 15:19:23 +08:00
Fangrui Song
11ba6b64ff
Remove ls
prefix from many LSP interfaces
...
Rename SymbolKind to Kind & lsSymbolKind to SymbolKind
Use textDocumentSync: TextDocumentSyncOptions
2019-01-09 15:19:23 +08:00
Fangrui Song
ac09b085ff
Misc
2019-01-09 15:19:23 +08:00
Fangrui Song
18e5d5c498
Simplify and work around vscode _sortTextLow
2019-01-09 15:19:23 +08:00
Fangrui Song
42b6b7b3f0
project.cc: deduplicate more cases
2019-01-09 15:19:23 +08:00
Fangrui Song
334557e9fe
Fix EnumConstantDecl's kind & EnumDecl's vars
2019-01-09 15:19:23 +08:00
Fangrui Song
90a94cbb4f
textDocument/references workspace/symbol: add folders
...
For textDocument/reference, base/excludeRole/role has been lifted from params.context.* to params.*
2019-01-09 15:19:23 +08:00
Fangrui Song
26d76b75c7
Report InvalidParams for serialization error
2019-01-09 15:19:23 +08:00
Fangrui Song
5599ddd343
Simplify and better compatibility with encodings retaining the feature of low bytes being 1-byte characters
2019-01-09 15:19:23 +08:00
Fangrui Song
df20969788
*.h -> *.hh
2019-01-09 15:19:23 +08:00
Fangrui Song
ea1271a84e
Refactor message handler and namespace ccls
2019-01-09 15:19:23 +08:00
Fangrui Song
6e19a5964e
Implement textDocument/documentLink
2019-01-09 15:19:23 +08:00
Fangrui Song
1d67a40ce8
Implement textDocument/foldingRange
2019-01-09 15:19:23 +08:00
David F
c0c7cfed8d
Fix broken link in README.md ( #101 )
2019-01-09 15:19:23 +08:00
Fangrui Song
16c2e0643b
Deprioritize completion items with additionTextEdits
2019-01-09 15:19:23 +08:00
Fangrui Song
32a658ad24
Fix textDocument/implementation
2019-01-09 15:19:23 +08:00
Fangrui Song
283d887271
Add command line option -index=root to index without starting language server
2019-01-09 15:19:23 +08:00
Fangrui Song
ce1c7ec76a
Improve DeducedType
2019-01-09 15:19:23 +08:00
Fangrui Song
119a05597d
Improve extent of definition/declaration; uniquify typeDefinition
2019-01-09 15:19:23 +08:00
Fangrui Song
87ea7d244d
Simplify
2019-01-09 15:19:23 +08:00
Fangrui Song
cb7ed9415d
Add ExtentRef; merge symbol2refcnt and outline2refcnt
...
Fix hierarchical document symbol for namespaces when there are multiple declarations.
2019-01-09 15:19:23 +08:00
Fangrui Song
fc1db06538
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
2019-01-09 15:19:17 +08:00
Fangrui Song
79352b451c
Misc changes to project
...
* Better LanguageId detection with clangDriver (e.g. .cu -> types::TY_CUDA)
* fallback when there is no .ccls or compile_commands.json
Also Hide clangTooling options from --help
2019-01-09 15:17:19 +08:00
Fangrui Song
4743124370
Adapt trunk change and write comments to PCH
2019-01-09 15:17:19 +08:00
Fangrui Song
61b361320b
-DSYSTEM_CLANG=off: 6.0.1 -> 7.0.0
2019-01-09 15:17:19 +08:00
Riatre Foo
f5816e3be3
Fix hierarchical document symbol
...
1. Fixed a bug on building document symbol tree: As sym2ds was updated in
place, nested funcs/types may be moved into children of another
lsDocumentSymbol before itself got processed.
2. Namespaces only have declarations, in the old implementation it wasn't included in the result, making the result less hierarchical. This
commit fixes this by including the declarations of a symbol if no
definitions found.
2019-01-09 15:17:19 +08:00