Skip to content

Quiet clang-tidy about invalid enum values#69

Merged
derobins merged 2 commits into
developfrom
derobins/quiet_clang_tidy_enums
Nov 19, 2025
Merged

Quiet clang-tidy about invalid enum values#69
derobins merged 2 commits into
developfrom
derobins/quiet_clang_tidy_enums

Conversation

@derobins
Copy link
Copy Markdown
Collaborator

Only in test code

Copilot AI review requested due to automatic review settings November 19, 2025 11:14
@derobins
Copy link
Copy Markdown
Collaborator Author

This eliminates almost all the clang-tidy output

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a NOLINT comment to suppress clang-tidy warnings in a test utility function that intentionally creates invalid enum values. The invalidEnum template function is designed to cast arbitrary integer values to enum types for testing error handling, which triggers static analysis warnings about out-of-range enum values.

Key Changes

  • Added a // NOLINT comment to suppress clang-tidy warnings for the enum cast operation in invalidEnum function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread shared/invalid-enum.h Outdated
@derobins derobins merged commit 76ea154 into develop Nov 19, 2025
31 checks passed
@derobins derobins deleted the derobins/quiet_clang_tidy_enums branch November 19, 2025 16:33
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.

3 participants