Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Make compile_commands.json paths also absolute. #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcourteaux
Copy link

This fixes a ton of issues for me. My usual workflow is as follows:

mkdir build
cd build
cmake ..
cd ..
ln -s build/compile_commands.json .

Such that I have sym-linked compile_commands.json file in my project root. This file is automatically synced by the build folder, which is perfect. Color_coded however, does not correctly interpret the paths, as they are all relative to the "working_directory" entry of the compile_commands.json file. My pull request fixes this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant