googletest icon indicating copy to clipboard operation
googletest copied to clipboard

Avod exit-time destructors in macros when possible

Open cdesouza-chromium opened this issue 3 months ago • 2 comments
trafficstars

This change attemps to reduce the introduction of exit-time destructors by gtest/gmock whenever it is possible, to just skip the destructor during termination. This is useful for codebases that aim to comply with clang's -Wexit-time-destructors. However, this change does not attempt to make all of gtest/gmock complaint with this warning, but limits itself to what merely affects user code.

Bug: https://github.com/google/googletest/issues/4803

cdesouza-chromium avatar Jul 21 '25 11:07 cdesouza-chromium

@derekmauro Would you be able to take a look at this PR, or help me be to get in touch with someone that could?

cdesouza-chromium avatar Jul 28 '25 19:07 cdesouza-chromium

cc @pizzud would you please able to help me get this PR moving for Chromium?

cdesouza-chromium avatar Aug 28 '25 18:08 cdesouza-chromium