mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-21 23:25:07 +00:00
Fix skipped region in clang 6.0.0; add repology badge; remove -latomic
This commit is contained in:
parent
aa2910208f
commit
d571fed293
17
README.md
17
README.md
@ -1,7 +1,7 @@
|
||||
# cquery
|
||||
|
||||
[![Join the chat at https://gitter.im/cquery-project/Lobby](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/cquery-project/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
# cquery
|
||||
|
||||
cquery is a highly-scalable, low-latency language server for C/C++/Objective-C. It is tested
|
||||
and designed for large code bases like
|
||||
[Chromium](https://chromium.googlesource.com/chromium/src/). cquery provides
|
||||
@ -14,14 +14,13 @@ some extra features to boot:
|
||||
|
||||
* code completion (with both signature help and snippets)
|
||||
* finding definition/references
|
||||
* type hierarchy (parent type, derived types, expandable tree view)
|
||||
* finding base/derived methods/classes, call tree
|
||||
* call (caller/callee) hierarchy, inheritance (base/derived) hierarchy, member hierarchy
|
||||
* symbol rename
|
||||
* document and global symbol search
|
||||
* hover tooltips showing symbol type
|
||||
* [document symbols](src/messages/text_document_document_symbol.cc) and approximate search of [workspace symbol](src/messages/workspace_symbol.cc)
|
||||
* [hover information](src/messages/text_document_hover.cc)
|
||||
* diagnostics
|
||||
* code actions (clang FixIts)
|
||||
* darken/fade code disabled by preprocessor
|
||||
* preprocessor skipped regions
|
||||
* #include auto-complete, undefined type include insertion, include quick-jump
|
||||
(goto definition, document links)
|
||||
* auto-implement functions without a definition
|
||||
@ -29,6 +28,10 @@ some extra features to boot:
|
||||
|
||||
# >>> [Getting started](https://github.com/jacobdufault/cquery/wiki/Getting-started) (CLICK HERE) <<<
|
||||
|
||||
<a href="https://repology.org/metapackage/cquery">
|
||||
<img src="https://repology.org/badge/vertical-allrepos/cquery.svg" alt="Packaging status" align="right">
|
||||
</a>
|
||||
|
||||
# Limitations
|
||||
|
||||
cquery is able to respond to queries quickly because it caches a huge amount of
|
||||
|
@ -361,9 +361,11 @@ IndexFile* ConsumeFile(IndexParam* param, CXFile file) {
|
||||
CXSourceRangeList* skipped = clang_getSkippedRanges(param->tu->cx_tu, file);
|
||||
for (unsigned i = 0; i < skipped->count; ++i) {
|
||||
Range range = ResolveCXSourceRange(skipped->ranges[i]);
|
||||
#if CINDEX_VERSION < 45 // Before clang 6.0.0
|
||||
// clang_getSkippedRanges reports start one token after the '#', move it
|
||||
// back so it starts at the '#'
|
||||
range.start.column -= 1;
|
||||
#endif
|
||||
db->skipped_by_preprocessor.push_back(range);
|
||||
}
|
||||
clang_disposeSourceRangeList(skipped);
|
||||
|
Loading…
Reference in New Issue
Block a user