-
Notifications
You must be signed in to change notification settings - Fork 6
C++20 #3
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
Conversation
Example: ``` Function 'overloadOf' has inline specifier but is implicitly inlined (fix available) [readability-redundant-inline-specifier] ```
``` Rvalue reference parameter 'slot' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved] ```
``` use 'std::scoped_lock' instead of 'std::lock_guard' [modernize-use-scoped-lock] ```
``` included header string is not used directly [misc-include-cleaner] ```
There was a problem hiding this 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 updates the GoogleTest framework to support C++20, involving significant refactoring and modernization of the codebase. The changes align with newer C++ standards and improve code quality.
Key Changes
- Upgrade preprocessor macros from
#ifto#ifdef/#if defined()for better consistency - Replace deprecated APIs and remove legacy code patterns
- Add new functionality including C++20 features and improved test infrastructure
- Reorganize header includes and improve code formatting
Reviewed Changes
Copilot reviewed 46 out of 48 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/gtest/src/gtest_main.cc | Updated platform detection macros and reorganized main entry points for different platforms |
| tests/gtest/src/gtest.cc | Major refactoring with updated flag handling, improved test filtering logic, and C++20 compatibility |
| tests/gtest/src/gtest-typed-test.cc | Code formatting improvements and simplified conditionals |
| tests/gtest/src/gtest-test-part.cc | Cleaned up streaming operators and simplified code structure |
| tests/gtest/src/gtest-printers.cc | Added 128-bit integer support and updated character handling for C++20 |
| tests/gtest/src/gtest-port.cc | Improved platform-specific code organization and thread handling |
| tests/gtest/src/gtest-matchers.cc | Reordered includes for better dependency management |
| tests/gtest/src/gtest-internal-inl.h | Updated flag accessors from direct access to getter/setter macros |
| tests/gtest/src/gtest-filepath.cc | Enhanced path handling with better Windows UNC support |
| tests/gtest/src/gtest-assertion-result.cc | New file extracting AssertionResult implementation |
| tests/gtest/src/gtest-all.cc | Updated to include new source file |
| tests/gtest/include/gtest/internal/gtest-string.h | Minor formatting and documentation improvements |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.