Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stackb/bazel-stack-vscode-cc
C/C++ Support For Bazel Stack VSCode Extension
https://github.com/stackb/bazel-stack-vscode-cc
Last synced: 3 days ago
JSON representation
C/C++ Support For Bazel Stack VSCode Extension
- Host: GitHub
- URL: https://github.com/stackb/bazel-stack-vscode-cc
- Owner: stackb
- License: apache-2.0
- Created: 2020-10-06T23:33:59.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-29T14:56:28.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T17:39:31.235Z (11 days ago)
- Language: Starlark
- Size: 78.1 KB
- Stars: 31
- Watchers: 4
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bazel - stackb/bazel-stack-vscode-cc - stack-vscode-cc). (Tooling / Editors)
README
# bazel-stack-vscode-cc
Additional support for [rules_cc](https://github.com/bazelbuild/rules_cc) in
conjunction with [bazel-stack-vscode](https://marketplace.visualstudio.com/items?itemName=StackBuild.bazel-stack-vscode)## Features
### Clang Compilation Database
This extension provides a command `Bazel/C++: Generate Compilation Database`
(`bsv.cc.compdb.generate`) that produces a file
`${workspaceDirectory}/compile_commmands.json` that assists with Intellisense
for Bazel/C++ repositories.To setup, edit your workspace settings (search for `bsv.cc.compdb.targets`) and
configure a list of bazel labels for the `cc_binary` or `cc_library` targets
you'd like to be indexed. The tool will then produce a command set for the
transitive closure of those top-level targets.To configure the bazel executable and/or additional bazel build arguments, use
the `bsv.bazel.executable` and `bsv.bazel.buildFlags` settings (provided by
[bazel-stack-vscode](https://marketplace.visualstudio.com/items?itemName=StackBuild.bazel-stack-vscode)).These can be added to your `.vscode/settings.json` and checked-in to VCS as
follows:```json
{
...
"bsv.bazel.buildFlags": [
"--config=custom",
],
"bsv.cc.compdb.targets": [
"//app/foo:foo_binary",
"//app/bar:bar_binary",
"//app/baz:baz_binary",
]
}
```Works best in conjuction with
.This feature was derived from .