Skip to content

Use inline constexpr for constants in header.#8147

Merged
maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
hzeller:feature-20250828-constexpr
Aug 28, 2025
Merged

Use inline constexpr for constants in header.#8147
maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
hzeller:feature-20250828-constexpr

Conversation

@hzeller
Copy link
Collaborator

@hzeller hzeller commented Aug 28, 2025

This way, we don't declare a bunch of 'unused' variables, but the compiler knows that this is a constant that might or might not be used.

This way, we don't declare a bunch of 'unused' variables, but the
compiler knows that this is a constant that might or might not be
used.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@hzeller hzeller marked this pull request as ready for review August 28, 2025 21:04
@maliberty maliberty merged commit 46e2349 into The-OpenROAD-Project:master Aug 28, 2025
10 of 11 checks passed
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