ament / ament/ament_lint

ament_cmake_clang_tidy: No compilation database files found

Open
#283 12 comments 0 reactions 1 assignee Claimed by @mm318 View on GitHub
help wanted
Dominant language
Python
Stars
50
Forks
129
Avg merge
3d 10h
Merged PRs (30d)
3

Description

It's unclear to me how to run clang-tidy in addition to the `ament_lint_common` linter suite. I'm building my package with `--cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1`, which creates `build/compilation_database.json`, but `ament_cmake_clang_tidy` doesn't seem to pick it up and instead gives the error in the title.

In `CMakeLists.txt`, I have

find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()

and in `package.xml`

ament_lint_auto
ament_cmake_clang_tidy
ament_lint_common

Is something missing there?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.