Skip to content

Enable bugprone#9058

Draft
Jacobfaib wants to merge 25 commits into
NVIDIA:mainfrom
Jacobfaib:jacobf/2026-05-18/clang-tidy-bugprone-umbrella
Draft

Enable bugprone#9058
Jacobfaib wants to merge 25 commits into
NVIDIA:mainfrom
Jacobfaib:jacobf/2026-05-18/clang-tidy-bugprone-umbrella

Conversation

@Jacobfaib
Copy link
Copy Markdown
Contributor

Description

closes

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@Jacobfaib Jacobfaib self-assigned this May 18, 2026
@copy-pr-bot
Copy link
Copy Markdown
Contributor

copy-pr-bot Bot commented May 18, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-project-automation github-project-automation Bot moved this to Todo in CCCL May 18, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL May 18, 2026
@Jacobfaib
Copy link
Copy Markdown
Contributor Author

/ok to test

@github-actions

This comment has been minimized.

@Jacobfaib
Copy link
Copy Markdown
Contributor Author

/ok to test

@github-actions

This comment has been minimized.

@Jacobfaib Jacobfaib force-pushed the jacobf/2026-05-18/clang-tidy-bugprone-umbrella branch from 5d83c5e to 779d579 Compare May 19, 2026 18:43
@Jacobfaib
Copy link
Copy Markdown
Contributor Author

/ok to test

@github-actions

This comment has been minimized.

@Jacobfaib Jacobfaib force-pushed the jacobf/2026-05-18/clang-tidy-bugprone-umbrella branch from 28555aa to a98e77b Compare May 21, 2026 17:29
@Jacobfaib
Copy link
Copy Markdown
Contributor Author

/ok to test

Comment thread libcudacxx/include/cuda/__memory_resource/get_property.h
Comment on lines +349 to +353
if constexpr (is_unsigned_v<_Lhs> && is_signed_v<_Rhs>)
{
_CCCL_ASSUME(__rhs < 0);
}
else if constexpr (is_unsigned_v<_Rhs> && is_signed_v<_Rhs>)
if constexpr (is_unsigned_v<_Rhs> && is_signed_v<_Lhs>)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks like a bug fix, please pull out into separate PR @davebayer for viz

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@miscco This PR is not for review (at least not in its current state). It's the umbrella PR that collects all of the changes needed for the whole category. Once CI passes:

  1. I split each check into separate PRs.
  2. I revert all changes in this PR and enable the category in the root .clang-tidy, while disabling all the checks that need fixes.
  3. This PR (in reduced form) merges.
  4. Each separate fix PR then removes the disable and implements the fixes. These sub-PR's is where these kinds of comments should be posted, they'll just get lost here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is what this PR will (eventually) look like #8438.

Comment thread libcudacxx/include/cuda/__utility/__basic_any/basic_any_ptr.h
Comment thread libcudacxx/include/cuda/__utility/__basic_any/basic_any_value.h
Comment thread libcudacxx/include/cuda/std/__algorithm/min.h
Comment thread libcudacxx/include/cuda/std/__cmath/logarithms.h
@miscco
Copy link
Copy Markdown
Contributor

miscco commented May 21, 2026

Please also drop the sizeof check

@github-actions
Copy link
Copy Markdown
Contributor

😬 CI Workflow Results

🟥 Finished in 1h 01m: Pass: 0%/1 | Total: 1h 01m | Max: 1h 01m

See results here.

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

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants