Skip to content

[NFC] Use a lambda instead of a macro in gtest - #7395

Merged
tlively merged 1 commit into
mainfrom
fix-type-builder-gtest-compile-time
Mar 25, 2025
Merged

[NFC] Use a lambda instead of a macro in gtest#7395
tlively merged 1 commit into
mainfrom
fix-type-builder-gtest-compile-time

Conversation

@tlively

@tlively tlively commented Mar 25, 2025

Copy link
Copy Markdown
Member

The length macro used in a type test in type-builder.cpp was causing
extremely long compile times in some compilers. Use a lambda instead to
fix it. This makes the error messages less useful when a test fails, but
under normal circumstances the test should not be failing, so this is a
good trade off.

Fixes #7383.

The length macro used in a type test in type-builder.cpp was causing
extremely long compile times in some compilers. Use a lambda instead to
fix it. This makes the error messages less useful when a test fails, but
under normal circumstances the test should not be failing, so this is a
good trade off.

Fixes #7383.
@tlively
tlively requested a review from kripken March 25, 2025 02:28
@tlively
tlively merged commit def4095 into main Mar 25, 2025
@tlively
tlively deleted the fix-type-builder-gtest-compile-time branch March 25, 2025 03:48
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.

Compiler warning/note in type-builder.cpp

2 participants