Skip to content

Silencing clang-tidy warnings #1551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sithhell
Copy link
Contributor

  • Silencing readability-static-accessed-through-instance by removing static from function declaration
  • Silencing "Assigned value is garbage or undefined":
    • Properly initialize vtable
    • Disabling some code when run under clang-tidy

 - Silencing `readability-static-accessed-through-instance` by removing
   static from function declaration
 - Silencing "Assigned value is garbage or undefined":
   - Properly initialize vtable
   - Disabling some code when run under clang-tidy
Copy link

copy-pr-bot bot commented Jun 18, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

sithhell added a commit to olympus-robotics/hephaestus that referenced this pull request Jun 18, 2025
 - Adding `repeatUntil` that allows non copyable senders (by allowing
   factories), needed in combination with `exec::task<>`
 - Silencing clang-tidy based errors with coroutines (the patch can be
   removed once NVIDIA/stdexec#1551 is resolved)
sithhell added a commit to olympus-robotics/hephaestus that referenced this pull request Jun 19, 2025
 - Adding `repeatUntil` that allows non copyable senders (by allowing
   factories), needed in combination with `exec::task<>`
 - Silencing clang-tidy based errors with coroutines (the patch can be
   removed once NVIDIA/stdexec#1551 is resolved)
Comment on lines -323 to 333
static constexpr auto await_ready() noexcept -> bool {
constexpr auto await_ready() noexcept -> bool {
return false;
}

static auto await_suspend(__coro::coroutine_handle<__promise> __h) noexcept
auto await_suspend(__coro::coroutine_handle<__promise> __h) noexcept
-> __coro::coroutine_handle<> {
return __h.promise().continuation().handle();
}

static void await_resume() noexcept {
void await_resume() noexcept {
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

the code is correct. these functions do not need to be passed a this pointer, hence the static. is there a way to suppress this warning locally?

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