BSD Ports

devel/ccls 0.20250815.1 NetBSD

C/C++/ObjC language server

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
a4856445ee
License
apache-2.0
Categories
devel
Package size
425.6 KiB, 1312.4 KiB installed

Description

ccls, which originates from cquery, is a C/C++/Objective-C language server.

Its features include:

  • code completion (with both signature help and snippets)
  • definition/references, and other cross references
  • cross reference extensions: $ccls/call $ccls/inheritance $ccls/member $ccls/vars ...
  • formatting
  • hierarchies: call (caller/callee) hierarchy, inheritance (base/derived) hierarchy, member hierarchy
  • symbol rename
  • document symbols and approximate search of workspace symbol
  • hover information
  • diagnostics and code actions (clang FixIts)
  • semantic highlighting and preprocessor skipped regions
  • semantic navigation: $ccls/navigate

It has a global view of the code base and support a lot of cross reference features, see https://github.com/MaskRay/ccls/wiki/FAQ. It starts indexing the whole project (including subprojects if exist) parallelly when you open the first file, while the main thread can serve requests before the indexing is complete. Saving files will incrementally update the index.

In the other systems

SystemPortVersion
NetBSDdevel/ccls0.20250815.1
FreeBSDdevel/ccls0.20240202
DragonFlydevel/ccls0.20240202
GhostBSDdevel/ccls0.20240202

Install

Binary package:

pkgin install ccls

From pkgsrc:

cd /usr/pkgsrc/devel/ccls && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.20250815.1
NetBSD 10.1 aarch640.20250815.1
SmartOS / illumos x86_64-
macOS 15 arm640.20261004nb1

Dependencies

Run dependencies 3

No port depends on this one.

Commit history 2

DateCommitCreditsLog message
a4856445ee wiz *: recursive bump for llvm 22
4cee6703df adam ccls: updated to 0.20261004
0.20261004 Support the LSP 3.17 type hierarchy: textDocument/prepareTypeHierarchy, typeHierarchy/supertypes and typeHierarchy/subtypes. For a virtual method, supertypes/subtypes are the overridden/overriding methods. $ccls/inheritance is unchanged. Find references and call hierarchy on a constructor now include calls through forwarding functions such as std::make_unique<A>(...) and std::vector<A>::emplace_back(...). Hover on an auto variable in a function template shows the deduced type when the template has exactly one instantiation. Locals and parameters of template instantiations are no longer indexed as duplicate symbols. For a sugared deduced type, hover adds the desugared type (// aka ...), as clangd does. …