{"id":20997532,"url":"https://github.com/cdump/bazel_compile_commands","last_synced_at":"2025-05-14T23:30:47.667Z","repository":{"id":78470022,"uuid":"319589598","full_name":"cdump/bazel_compile_commands","owner":"cdump","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-08T07:28:44.000Z","size":127,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T00:11:12.155Z","etag":null,"topics":["bazel","clangd","compile-commands-json"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdump.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-08T09:30:36.000Z","updated_at":"2023-01-10T14:44:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"72538bd6-f378-49ba-b6a2-844b4d9e7487","html_url":"https://github.com/cdump/bazel_compile_commands","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdump%2Fbazel_compile_commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdump%2Fbazel_compile_commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdump%2Fbazel_compile_commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdump%2Fbazel_compile_commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdump","download_url":"https://codeload.github.com/cdump/bazel_compile_commands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254247989,"owners_count":22038939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bazel","clangd","compile-commands-json"],"created_at":"2024-11-19T07:40:10.709Z","updated_at":"2025-05-14T23:30:47.652Z","avatar_url":"https://github.com/cdump.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bazel-compile-commands\n\nGenerates [compile_commands.json](https://clang.llvm.org/docs/JSONCompilationDatabase.html) for your bazel project\n\n## What is compile_commands.json\nIt's a file used by code completion tools, like [clangd](https://clangd.llvm.org/)\n\nLook at [example.cpp](example/example.cpp) in vim with [coc-nvim](https://github.com/neoclide/coc.nvim) plugin with/without that database:\n\n![vim with/without compile_commands.json](./vim.png)\n\n\n## How to use\nSee [example](example/)\n\nWith `--experimental_action_listener` we generate JSON files for every build piece and with `gen_compile_commands.sh` we make final `compile_commands.json`\n\n\n## Acknowledgements\n- based on [kythe/kythe](https://github.com/kythe/kythe/tree/33b83453a40fa6555cadaa2dab517d2c49510073/kythe/cxx/tools/generate_compile_commands)\n- extra_actions_base.proto from [bazelbuild/bazel](https://github.com/bazelbuild/bazel/blob/df37047e4ec45f5d018b436dbb64062cd9148a15/src/main/protobuf/extra_actions_base.proto)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdump%2Fbazel_compile_commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdump%2Fbazel_compile_commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdump%2Fbazel_compile_commands/lists"}