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
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
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
eeeb03c068
If clang >= 8, delete search path detection and use Sema::CodeCompleteIncludedFile
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
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
4743124370
Adapt trunk change and write comments to PCH
2019-01-09 15:17:19 +08:00
Fangrui Song
51081c3cd2
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
2019-01-09 15:17:19 +08:00
Fangrui Song
de9c77e1cc
Improve completion
...
blacklist some undesired candidates
additionalTextEdits if clang>=7
Use CodePatterns for preprocessor directive completion if there is a #
Prefer textEdit over insertText
2019-01-09 15:17:19 +08:00
Fangrui Song
fc8a60c630
Add PreambleStatCache
2018-10-02 22:15:21 -07:00
Fangrui Song
29f05d96fb
Use pthread if defined(__unix__) || defined(__APPLE__)
2018-10-02 17:51:36 -07:00
Fangrui Song
84984c6c27
Use non-inferred entries and build preamble for .h; index on didOpen if no pending requests; documentHighlight
2018-10-01 16:56:50 -07:00
Fangrui Song
d4871207ed
Construct SourceManager with UserFilesAreVolatile
...
Prettify pipeline
2018-09-28 14:06:01 -07:00
Fangrui Song
8f40c0c244
Remove clang_utils.*
2018-09-23 20:34:40 -07:00
Fangrui Song
854225bd30
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
2018-09-23 20:34:38 -07:00
Fangrui Song
28d33324b1
Publish diagnostics of inferred files and change diagnostics.{onChange,onOpen,onSave} from bool to debounce time
2018-09-23 10:40:39 -07:00
Fangrui Song
a174105abe
Better diagnostics
2018-09-13 14:55:27 -07:00
Riatre Foo
a607dcec24
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.
2018-09-12 17:01:52 -07:00
Fangrui Song
a45686ae1b
diagnostics; use custom DenseMapInfo
2018-09-12 17:01:52 -07:00
Fangrui Song
c9e6b31dd0
Revamp completion and signatureHelp, set completion.detailedLabel: true and add completion.duplicateOptional
2018-09-12 17:01:48 -07:00
Fangrui Song
da982a6506
Reuse preamble (built by "comp-preload") in indexer
2018-09-10 00:45:56 -07:00
Fangrui Song
58191fd335
Support empty cacheDirectory and fix cache load
2018-09-08 15:46:52 -07:00
Fangrui Song
82d31a2012
Implement index.onChange: true; enable spell checking for diagnostics
2018-09-08 14:27:49 -07:00
Fangrui Song
8b3ebf234b
Remove $ccls/base and clean up; deduplicate codeLens
2018-09-07 15:00:15 -07:00
Fangrui Song
56da577df9
Add clang.excludeArgs and rename diagnostics.onType to onChange
2018-09-04 13:10:18 -07:00
Fangrui Song
407c7cc29d
Remove ASTUnit from indexer and clean up
2018-08-31 09:47:37 -07:00
Fangrui Song
1ae97c64ed
detailed_name: "{\n}" -> "{}" ; completion
2018-08-29 23:40:40 -07:00
firstlove
74790e2421
fix clang_tu.h && clang_complete.cc ( #61 )
2018-08-29 20:52:44 -07:00
Fangrui Song
87c5491536
New diagnostics
2018-08-29 20:52:44 -07:00
Fangrui Song
f808dd8f8a
Use StoreInMemory Preamble for CodeComplete
2018-08-29 20:52:32 -07:00
Fangrui Song
f3490a3e6c
Add license notice
2018-08-20 22:27:52 -07:00
Fangrui Song
8cbb317dc2
clang-format
...
DEF CON 26 CTF
2018-08-09 10:13:54 -07:00
Fangrui Song
0bb311ac56
Add textDocument/codeAction for clang FixIt
...
What do you think of the challenge ccls-fringe in Real World CTF?
2018-07-29 01:03:30 -07:00
Chao Shen
ff102c9b7e
Fix preload completion session.
2018-07-24 20:48:41 -07:00
Fangrui Song
0732d37817
Better bases/derived and initializer
2018-07-17 21:13:56 -07:00
Fangrui Song
344f00fbb2
CrashRecoveryContext
2018-07-15 23:06:27 -07:00
Fangrui Song
814f054e6e
Misc improvement to indexer
...
* Make CXXConstructor span one more column to left/right
* Use OrigD to collect Decl::Record members
* Better comment parsing
* Limit lines of initializers and macro definition to 3
* Attribute macro arg uses to spelling loc
* Remove FuncDef::declaring_type
2018-07-15 16:51:20 -07:00
Fangrui Song
dd05ad9f65
Diagnostics
2018-07-15 13:29:47 -07:00
Fangrui Song
eea1b92825
Enable clangDriver in project.cc
...
https://bugs.llvm.org/show_bug.cgi?id=37695 is not fixed. But since we have eliminated libclang for indexing and completion the bug no longer bothers us.
2018-07-15 01:22:02 -07:00
Fangrui Song
5dcccea285
Use Clang C++ for completion and diagnostics
2018-07-15 00:15:31 -07:00
Fangrui Song
d604fc38dc
Use Sema/CodeCompleteConsumer
2018-07-14 11:41:16 -07:00
Fangrui Song
559a68a261
Display diagnostics from header files
2018-06-23 10:50:15 -07:00
Fangrui Song
a36e548e03
Remove Timer and PerformanceImportFile
2018-05-31 23:52:51 -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
19d0aad2ca
clean up clang_complete found by scturtle; clean up project
2018-05-14 10:02:37 -07:00