Nikolaus Wittenstein
89faa7a6ef
Add Apache LICENSE file ( #121 )
6 years ago
Dso Tsin
e5f7a938b5
Fix VS2017 build issues and add Appveyor CI script ( #118 )
6 years ago
Fangrui Song
985f5ec4d3
Use SM.isWrittenInMainFile; suppress -Werror in preamble
SM.isWrittenInMainFile is to work around preamble bug: spurious err_pp_unterminated_conditional with circular #include
6 years ago
Fangrui Song
d9a31a72bd
hierarchicalDocumentSymbol: display member function declarations
6 years ago
Fangrui Song
aaa5008ec6
Fix some MSVC 2017 errors
Thanks to Dso Tsin!
6 years ago
Fangrui Song
d398e071dc
If clang >= 8, delete search path detection and use Sema::CodeCompleteIncludedFile
6 years ago
Fangrui Song
444f0db1f2
Work around relative --sysroot=
6 years ago
Fangrui Song
02a6f39559
Improve semantic highlight in templates
6 years ago
Fangrui Song
09669fff76
Reduce MAKE_REFLECT_STRUCT in lsp.hh
Position -> Pos; lsPosition -> Position
6 years ago
Fangrui Song
0d4f4b68c0
Remove `ls` prefix from many LSP interfaces
Rename SymbolKind to Kind & lsSymbolKind to SymbolKind
Use textDocumentSync: TextDocumentSyncOptions
6 years ago
Fangrui Song
9a6851c6a5
Misc
6 years ago
Fangrui Song
353b398a73
Simplify and work around vscode _sortTextLow
6 years ago
Fangrui Song
857f41c247
project.cc: deduplicate more cases
6 years ago
Fangrui Song
c598f3ebbd
Fix EnumConstantDecl's kind & EnumDecl's vars
6 years ago
Fangrui Song
c8e57ee7b3
textDocument/references workspace/symbol: add folders
For textDocument/reference, base/excludeRole/role has been lifted from params.context.* to params.*
6 years ago
Fangrui Song
c4bf9c5d6a
Report InvalidParams for serialization error
6 years ago
Fangrui Song
c1422c7a8d
Simplify and better compatibility with encodings retaining the feature of low bytes being 1-byte characters
6 years ago
Fangrui Song
bbce333042
*.h -> *.hh
6 years ago
Fangrui Song
3cd0ee2fc7
Refactor message handler and namespace ccls
6 years ago
Fangrui Song
8fa853c321
Implement textDocument/documentLink
6 years ago
Fangrui Song
617cdd89de
Implement textDocument/foldingRange
6 years ago
David F
f6472061d3
Fix broken link in README.md ( #101 )
6 years ago
Fangrui Song
4f8889c195
Deprioritize completion items with additionTextEdits
6 years ago
Fangrui Song
dc20ea3b33
Fix textDocument/implementation
6 years ago
Fangrui Song
66bf514b5f
Add command line option -index=root to index without starting language server
6 years ago
Fangrui Song
a56b6fb228
Improve DeducedType
6 years ago
Fangrui Song
18b47d3f5c
Improve extent of definition/declaration; uniquify typeDefinition
6 years ago
Fangrui Song
46cfd5504a
Simplify
6 years ago
Fangrui Song
5fbe4eac83
Add ExtentRef; merge symbol2refcnt and outline2refcnt
Fix hierarchical document symbol for namespaces when there are multiple declarations.
6 years ago
Fangrui Song
bc4dc6720b
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
6 years ago
Fangrui Song
4a1eea75db
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
6 years ago
Fangrui Song
40b47f9ca3
Adapt trunk change and write comments to PCH
6 years ago
Fangrui Song
f9cf7854fa
-DSYSTEM_CLANG=off: 6.0.1 -> 7.0.0
6 years ago
Riatre Foo
ec71d4c6c0
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.
6 years ago
Fangrui Song
82deedf8c3
Add namespace alias clang::vfs = llvm::vfs to adapt D52783
vfs::x should be written as llvm::vfs::x to work around a [namepace.udir] bug before GCC 8 when namespace alias is used
6 years ago
Fangrui Song
7b19c87485
Namespace: improve indexer and don't trace bases in $ccls/member
6 years ago
Riatre Foo
3de62168c8
Fix additionalTextEdits -> textEdit hack for VS Code ( #89 )
* Fix additionalTextEdits -> textEdit hack for VS Code
Visual Studio Code filters the completion result according to
textEdit.range and filterText, if the textEdit.range overlaps with
existing text, we have to include it in filterText, otherwise it would
be filtered out.
* Fix has_open_paren in FilterCandidates
6 years ago
Fangrui Song
49dd0ed558
Support workspace folders
6 years ago
Fangrui Song
e352604ee4
Improve completion
blacklist some undesired candidates
additionalTextEdits if clang>=7
Use CodePatterns for preprocessor directive completion if there is a #
Prefer textEdit over insertText
6 years ago
Fangrui Song
a920e71711
Clean and update tests after Index* refactoring
6 years ago
Fangrui Song
2864f2c647
Use DeclRef spell to represent Use spell + Use extent
6 years ago
Fangrui Song
08b09bc1da
Redesign SymbolRef, Ref, Use
Remove lsLocationEx
6 years ago
Fangrui Song
0c5c3a11be
Add completion.maxNum: 100
6 years ago
Fangrui Song
8b2565fcd0
For $ccls/member, use unadjusted RecordDecl (if there is forward declaration) and handle ClassTemplateSpecialization
6 years ago
Fangrui Song
2592dd41dd
Add PreambleStatCache
6 years ago
Fangrui Song
31314555bb
Use pthread if defined(__unix__) || defined(__APPLE__)
6 years ago
firstlove
9a79b2ece1
regard conversion as method instead of constructor
6 years ago
Fangrui Song
3337d3de8c
Add $ccls/info
6 years ago
Fangrui Song
3c332b91de
Clean
6 years ago
Fangrui Song
fa2234c894
Use non-inferred entries and build preamble for .h; index on didOpen if no pending requests; documentHighlight
6 years ago