This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Create successful and reproducible indexes of 20 OSS repos #12
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
lsif-clang
team/code-intelligence
Milestone
Comments
shrouxm
added
enhancement
New feature or request
help wanted
Extra attention is needed
team/code-intelligence
labels
Sep 3, 2020
41 tasks
Some findings on MacOS 10.15. nlohmann/jsonRunning commands cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cp ./build/compile_commands.json .
lsif-clang --extra-arg='-resource-dir=/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3' --executor=all-TUs compile_commands.json > dump.lsif exits with status 138.
protocolbuffers/protobufRunning commands cmake -B buildx -S cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cd buildx
make # NOTE: I ran make here to generate .pb.cc files (probably not necessary in general)
cp ./compile_commands.json ..
cd ../
lsif-clang --extra-arg='-resource-dir=/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3' --executor=all-TUs compile_commands.json > dump.lsif produces a valid index with 7837653 elements. Passes lsif-validate with 466 overlapping ranges. All of these ranges "kiss", which may be an error in lsif-validate or lsif-clang. I believe the intervals are half-open and this should be fine. |
FFmpeg/FFmpeg
./configure
bear make
<unmodified lsif-clang invocation> |
nlohmann/json
cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
ln -s $(pwd)/build/compile_commmands.json ./
<unmodified lsif-clang invocation> |
tensorflow/tensorflow
|
torvalds/linux
|
17 tasks
envoyproxy/envoy
|
grpc/grpc
|
falcosecurity/falco
sudo apt install git cmake build-essential libncurses-dev pkg-config autoconf libtool libelf-dev -y
sudo apt install libssl-dev libc-ares-dev libprotobuf-dev protobuf-compiler libjq-dev libgrpc++-dev protobuf-compiler-grpc libcurl4-openssl-dev
cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja
ninja -C build $(egrep -e '^build[^:]+.pb.(cc|h|c|cpp)[: ]' build/build.ninja | awk '{print $2}')
lsif-clang build/compile_commands.json |
Closed
3 tasks
prabhuomkar/pytorch-cpp
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
lsif-clang
team/code-intelligence
Steps for everyone:
Steps for Garo:
The text was updated successfully, but these errors were encountered: