Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.05 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.05 KB

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