Skip to content

Enable clang-tidy tooling - #443

Open
colin-higgins wants to merge 7 commits into
masterfrom
colin.higgins/static-analysis-groundwork
Open

colin-higgins wants to merge 7 commits into
masterfrom
colin.higgins/static-analysis-groundwork

Conversation

@colin-higgins

@colin-higgins colin-higgins commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Add a shared clang-tidy baseline and a CI job that fails on findings, so PRs cannot merge with tidy violations.

Co-authored-by: Cursor <cursoragent@cursor.com>
@colin-higgins
colin-higgins requested review from a team as code owners September 24, 2026 14:55
@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Tests

✅ All CI checks and tests passed.

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 69.30% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 2e7f086 | Docs | View more details | Give us feedback!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0fb529abff

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread bin/lint-tidy.sh Outdated
Comment on lines +94 to +95
mapfile -t files < <(find src test/unit \
-type f \( -name '*.cpp' -o -name '*.c' \))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Limit clang-tidy to configured sources

The CI job configures with BUILD_TESTING=OFF and RUM=OFF, so compile_commands.json contains neither test/unit nor src/rum, yet this find sends all of them to clang-tidy. Unit files require Catch2, which is not fetched when tests are disabled, and RUM files lack their configured include paths. clang-tidy then reports compiler errors and exits nonzero, so lint-tidy cannot complete in its defined CI configuration. Build the needed targets or derive the input list from compile_commands.json.

Useful? React with 👍 / 👎.

colin-higgins and others added 6 commits September 24, 2026 11:13
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

@xlamorlette-datadog xlamorlette-datadog left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before handling this PR, we should finalize the mother PR in dd-trace-cpp: DataDog/dd-trace-cpp#372.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants