ClangSight is a tool designed to streamline the communication between a developer/researcher and clangd, specifically targeting already indexed C++ projects across various operating systems. As a foundational layer, ClangSight facilitates and simplifies the interaction. Still, it shall only be considered a mere demonstration of what could be accomplished by building on top of it.
In order to build this project you need to have a few tools already installed:
- cmake (3.1 or newer)
- ninja or Visual Studio
- C++ compiler that supports C++ 20
If your target environment is a Debian-based Linux distro, you can easily satisfy the requirements above by installing the following packages:
sudo apt install cmake
sudo apt install ninja-buildOn the other hand, if your target environment is Windows it is easier to just install Visual Studio and follow the building instructions below through Visual Studio's "Native Tools Command Prompt".
-
Clone or download this repository
git clone REPO_URL cd ClangSight -
Configure with CMake
mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Release -G Ninja .. -
Build with Ninja
ninja -
Run the app
- Linux:
./ClangSight - Windows:
.\ClangSight.exe
- Linux:
-
Explore the available options
./ClangSight --help Usage: ClangSight [-h] [--directory VAR] [--commands VAR] [--clangd VAR] Optional arguments: -h, --help shows help message and exits -v, --version prints version information and exits -l, --directory the root directory of the source code -c, --commands the directory where "compile_commands.json" resides -d, --clangd location of the clangd executable