https://github.com/zyedidia/comp
A tool for finding and executing commands from compile_commands.json
https://github.com/zyedidia/comp
Last synced: 7 months ago
JSON representation
A tool for finding and executing commands from compile_commands.json
- Host: GitHub
- URL: https://github.com/zyedidia/comp
- Owner: zyedidia
- Created: 2022-11-17T21:34:04.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-14T21:08:34.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T09:56:29.664Z (12 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Comp
This tool looks for a file called `compile_commands.json` up the directory
hierarchy and uses it to attempt to build some input file. For example, `comp
file.c` will first search for `compile_commands.json`, and if found will
execute the command that is specified for building `file.c`. This can be used
to implement a simple editor-integrated linter that is aware of the commands
used to actually build the files in your project.
I may make some editor plugins for this in the future.