Paul Smith
b6155ddf73
Enhance the output of --version with Git describe results. ( #342 )
2019-03-23 20:24:10 -04:00
Fangrui Song
7c70c0662f
cmake: use {LLVM,Clang}Config.cmake
...
Combined Daan De Meyer's #227 with other simplification
* USE_SHARED_LLVM is deleted in favor of LLVM_LINK_LLVM_DYLIB
* LLVM_ENABLE_RTTI is deleted as it is provided by LLVMConfig.cmake
* Only direct Clang/LLVM dependencies are required in target_link_libraries
* Restrict -DCLANG_RESOURCE_DIRECTORY= to src/utils.cc
2019-03-09 19:45:37 -08:00
Fangrui Song
478f849ada
cmake: add option to use system rapidjson if exists
2019-03-08 22:46:43 -08:00
Fangrui Song
9bbb288b57
cmake: delete SYSTEM_CLANG and auto-download mechanism
2019-01-22 22:44:13 +08:00
Fangrui Song
c6d56519e3
Drop support for clang 6
2019-01-21 10:44:44 +08:00
Fangrui Song
e3133bea90
cmake_minimum_required 3.8; clean up
2019-11-09 20:09:13 -08:00
Fangrui Song
9ad2450009
Refactor WorkingFiles and CompletionManager
...
* WorkingFiles::files : vector -> unordered_map
* Add timestamp to WorkingFile
* Rename "comp-preload" thread to "preamble"
* Rename CompletionManager to SemaManager as it is used by "diag" "comp" "preamble"
* Rename clang_complete.* to sema_manager.*
* Merge SemaManager::{preloads,sessions}
* Add initialization option session.maxNum
* In DiagnosticMain, if an included file was modified, cancel the DiagTask and create a PreambleTask instead. The task sets `from_diag` so as to trigger immediate DiagTask after the preamble is built.
2019-11-09 20:09:13 -08:00
Fangrui Song
880c515d64
Merge query.hh and query_util.hh
2019-11-09 20:09:13 -08:00
Fangrui Song
d6dd932e6d
Refactor Matcher to use pimpl and merge match.hh into utils.hh
2019-11-09 20:09:13 -08:00
Dso Tsin
e5f7a938b5
Fix VS2017 build issues and add Appveyor CI script ( #118 )
2019-11-09 20:09:13 -08:00
Fangrui Song
3cd0ee2fc7
Refactor message handler and namespace ccls
2019-11-09 20:09:11 -08:00
Fangrui Song
8fa853c321
Implement textDocument/documentLink
2019-11-09 20:03:28 -08:00
Fangrui Song
617cdd89de
Implement textDocument/foldingRange
2019-11-09 20:03:28 -08:00
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
2019-11-09 20:03:28 -08:00
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
2019-11-09 20:03:28 -08:00
Fangrui Song
49dd0ed558
Support workspace folders
2019-11-09 20:03:28 -08:00
Fangrui Song
3337d3de8c
Add $ccls/info
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
Fangrui Song
3334b2c4b7
Remove clang_utils.*
2019-11-09 19:58:32 -08:00
Fangrui Song
f0400fdcf2
Delete file_consumer.*
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
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
Fangrui Song
ce72cf7bd9
Remove $ccls/base and clean up; deduplicate codeLens
2019-11-09 19:58:32 -08:00
Fangrui Song
d864f969ad
Add $ccls/navigate and improve textDocument/definition
2019-11-09 19:58:29 -08:00
Fangrui Song
b794b3606f
Add LLVM_ENABLE_RTTI (default: OFF) to allow linking against Arch Linux extra/{llvm,clang} (-DLLVM_ENABLE_RTTI=ON)
2019-10-24 01:01:21 -07:00
Riatre Foo
87f36a4a96
Fix compile on Windows + MSYS2-MinGW64 ( #46 )
...
1. libClangDriver.a shipped by MSYS2 needs -lversion which is not
included in CMAKE_CXX_STANDARD_LIBRARIES by default.
2. Use string literal for DEFAULT_RESOURCE_DIRECTORY to support
backslashes in path.
2019-10-24 01:01:21 -07:00
Fangrui Song
af881dff18
cmake: for -DSYSTEM_CLANG=off, 6.0.0 -> 6.0.1
2019-10-24 01:01:21 -07:00
Fangrui Song
1c0bf0af65
Add textDocument/codeAction for clang FixIt
...
What do you think of the challenge ccls-fringe in Real World CTF?
2019-10-24 01:01:21 -07:00
Chao Shen
f87ee1323c
Misc.
2019-10-24 01:01:20 -07:00
Fangrui Song
d3536831c3
Fix FreeBSD build with -DUSE_SHARED_LLVM=off
2019-10-24 01:01:20 -07:00
Fangrui Song
7ad03c22bd
cmake: remove -lc++experimental -ldl -lexecinfo
2019-10-24 01:01:20 -07:00
Fangrui Song
32dad17e81
Remove submodule doctest
2019-10-24 01:01:20 -07:00
Fangrui Song
2682964039
Rename message files (e.g. ccls_call_hierarchy.cc -> ccls_callHierarchy.cc)
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
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
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
bb08fdfa02
Remove $ccls/random; remove DB::symbols; decrease DB::entities grow rate
2019-10-24 00:17:25 -07:00
Fangrui Song
a962061698
Simplify pipeline
2019-10-23 21:56:51 -07:00
Fangrui Song
cf0d16fa0c
Replace loguru with a custom logger
2019-10-23 21:56:51 -07:00
Fangrui Song
f9e1e8cbdc
Congratulations to Tea Deliverers
2019-10-23 21:56:51 -07:00
Fangrui Song
36729818c3
experimental/filesystem -> LLVM/Support/FileSystem.h; sparsepp -> DenseMap
2019-10-23 21:56:51 -07:00
Fangrui Song
c81ca26a2e
Use llvm::cl and simplify main.cc import_pipeline.cc
2019-10-23 21:56:51 -07:00
Fangrui Song
c269876593
Use clang+llvm C++ in cmake; parse args with clang driver
2019-10-23 21:56:51 -07:00
Fangrui Song
b349983e13
cmake: make FreeBSD 11,12 build
2019-10-23 21:56:51 -07:00
Fangrui Song
a385bffcbd
Backport and cleanup
2019-10-23 21:56:51 -07:00
scturtle
6c57f9663e
Add CLANG_USE_BUNDLED_LIBC++ to cmake
2019-10-23 21:56:51 -07:00
Fangrui Song
49e042e070
Redesign import_pipeline.cc and mitigate race (duplicate Query*::uses for initial indexing)
2019-10-23 21:56:51 -07:00