lsif-clang VS scip

Compare lsif-clang vs scip and see what are their differences.

lsif-clang

Language Server Indexing Format (LSIF) generator for C, C++ and Objective C (by sourcegraph)

scip

SCIP Code Intelligence Protocol (by sourcegraph)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
lsif-clang scip
4 7
33 216
- 2.8%
0.0 7.3
about 1 year ago 3 days ago
C++ Rust
- Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

lsif-clang

Posts with mentions or reviews of lsif-clang. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-06.
  • The technology behind GitHub’s new code search
    17 projects | news.ycombinator.com | 6 Feb 2023
    In the top right corner of the tooltip it will say either "Search-based" or "Precise" - in this case, you're right, we don't have the abseil-cpp repo indexed so it falls back to search-based as you describe.

    We do have a C++ code indexer in beta, https://github.com/sourcegraph/lsif-clang - it is based on clang but C++ indexing is notably harder to do automatically/without-setup due to the varying build systems that need to be understood in order to invoke the compiler.

  • GitHub Code Search (Preview)
    4 projects | news.ycombinator.com | 3 Jul 2022
    Interesting because on https://lsif.dev/ I see that LSIF support for C++, which basically is just a wrapper around clangd AFAIU, is deprecated. Is there something else that replaced it?
  • SCIP - a better code indexing format than LSIF
    1 project | /r/programming | 8 Jun 2022
    We already have an LSIF indexer for C++ (lsif-clang); however, that is not as feature complete as the other indexers. Moreover, the codebase is forked off of Clang 10, so upgrading to newer Clang versions (and build a SCIP indexer on top of that) will be a challenge.
  • Google Is 2B Lines of Code–and It's All in One Place
    3 projects | news.ycombinator.com | 6 May 2022
    - Go:

    Why are not all repos covered?

    Because different languages have different build systems, so inferring the right build commands, dependencies etc. is not so straightforward; these are necessary per-requisites for compiler-accurate cross references. We're working on fixing this with auto-indexing: https://docs.sourcegraph.com/code_intelligence/explanations/...

    For C and C++ specifically, auto-indexing is challenging because of the large variety in build systems, informal specification of dependencies (such as in a README instead of a machine-readable format), and platform-specific code.

    Outside of auto-indexing, we do have an indexer for C and C++ right now (https://github.com/sourcegraph/lsif-clang) which can be run in CI; that way one can generate an index and upload it to Sourcegraph on a regular basis. It is 'Partially available' (https://docs.sourcegraph.com/code_intelligence/references/in...) right now. We're keenly aware of the interest in C++, and are working our way through different languages based on usage.

scip

Posts with mentions or reviews of scip. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-20.
  • Show HN: GritQL, a Rust CLI for rewriting source code
    8 projects | news.ycombinator.com | 20 Mar 2024
    security is up there, but from reading the examples in CodeQL it just seemed like it would be possible to express some truly great versions of "don't do that" rules in it. I am a total JetBrains fanboi, and their introspections are world-class, but getting Qodana to run to completion before the heat death of the universe has proven to require more glucose than I have to offer it. Thus, I'm always interested in alternate implementations, even though I am acutely aware of the computational complexity of what I'm asking

    I recalled another link I wish I had included in my question from the SourceGraph folks https://github.com/sourcegraph/scip#scip-code-intelligence-p... which started out life as "Language Server Indexing Protocol" and seems to solve some similar project-wide introspection questions but TBH since their rug pull I've been a lot less willing to hitch my wagon to their train

  • Have questions/requests/issues related to the Zig Language Server?
    5 projects | /r/Zig | 6 May 2023
    New standards proliferate all the time and many simply cannot rely solely on a compiler language server but can rely on a custom semantic information protocol - SCIP comes to mind. :)
  • srctx: a LSIF parser for understanding what happened in every lines of your code
    4 projects | /r/golang | 6 Apr 2023
    Over the last ~9 months or so, we've been moving away from LSIF and have been using SCIP instead. https://github.com/sourcegraph/scip (announcement blog post, which covers the reasons for why we stopped using LSIF: https://about.sourcegraph.com/blog/announcing-scip)
  • The technology behind GitHub’s new code search
    17 projects | news.ycombinator.com | 6 Feb 2023
    This is pretty much exactly what we've built at Sourcegraph. Microsoft had introduced (but pretty much abandoned before it even started) LSIF, a static index format for LSP servers requests/responses.

    We took that torch and carried it forward, building the spiritual successor called SCIP[0]. It's language agnostic, we have indexers for quite a few languages already, and we genuinely intend for it to be vendor neutral / a proper OSS project[1].

    [0] https://about.sourcegraph.com/blog/announcing-scip

    [1] https://github.com/sourcegraph/scip

  • Steve Yegge Joins as Head of Engineering of Sourcegraph
    4 projects | news.ycombinator.com | 4 Oct 2022
    Created a PR to mention tools using SCIP in the README. https://github.com/sourcegraph/scip/pull/101
  • cargo-udeps 0.1.33 release
    5 projects | /r/rust | 15 Sep 2022
    I've looked into the pull request that added SCIP support to rust-analyzer, and apparently rust-analyzer uses the scip crate. The linked PR also links to a blog post that explains the motivation for scip. The github repo of the scip crate lives here, it's not linked in Cargo.toml, probably should.

What are some alternatives?

When comparing lsif-clang and scip you can also consider the following projects:

cppinsights - C++ Insights - See your source code with the eyes of a compiler

cargo-udeps - Find unused dependencies in Cargo.toml

codechecker - CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy

cargo-semver-checks - Scan your Rust crate for semver violations.

color_coded - A vim plugin for libclang-based highlighting of C, C++, ObjC

lsif-go - Language Server Indexing Format (LSIF) generator for Go

LLVM-Guide - LLVM (Low Level Virtual Machine) Guide. Learn all about the compiler infrastructure, which is designed for compile-time, link-time, run-time, and "idle-time" optimization of programs. Originally implemented for C/C++ , though, has a variety of front-ends, including Java, Python, etc.

hn-search - Hacker News Search

advanced

rust-analyzer - A Rust compiler front-end for IDEs

Bazel - a fast, scalable, multi-language and extensible build system

zig-hcs-client - A simple REPL for controlling Zig's hot-code swapping compilation mode