Skip to content

Comments

Add C++20 modules support#599

Open
mikomikotaishi wants to merge 1 commit intogoogle:mainfrom
mikomikotaishi:main
Open

Add C++20 modules support#599
mikomikotaishi wants to merge 1 commit intogoogle:mainfrom
mikomikotaishi:main

Conversation

@mikomikotaishi
Copy link

This PR adds C++20 modules support. No existing issue covers this pull request. The module generated is re2 and enabled using the CMake option RE2_BUILD_MODULES.

Example:

import re2;

using re2::RE2;

// ...
String pattern = "h.*o";
String input = "hello";
bool match = RE2::FullMatch(input, pattern);

Build using:

cmake -S . -B build -G Ninja -DRE2_MODULES=ON
cmake --build build

@google-cla
Copy link

google-cla bot commented Feb 20, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

1 participant