Skip to content

andrenbrandao/bazel-cpp-boilerplate

Repository files navigation

bazel-cpp-boilerplate

Bazel boilerplate with C++ and GoogleTest.

How to build and run

First, make sure you have Bazel installed.

bazel build :all
bazel run :hello_main

Running the tests

bazel test --test_output=all :all

Autocomplete with Neovim

Because we are using Bazel, clangd autocomplete in Neovim doesn't know where to find the headers. To fix it, I'm using Hedron's Compile Commands Extractor for Bazel.

Execute the following command to fix autocomplete when new dependencies are installed:

bazel run @hedron_compile_commands//:refresh_all

Resources

About

Bazel boilerplate with C++ and GoogleTest.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published