LibRegex: Annotate classes with export macro for hidden visibility

This fix demos the gradual opt-in migration process libraries can
take to switch to explicit symbol exports via the FOO_API macros.
This commit is contained in:
ayeteadoe 2025-05-09 18:35:19 -07:00 committed by Andrew Kaster
commit a3754a7bf1
Notes: github-actions[bot] 2025-05-12 09:23:32 +00:00
6 changed files with 15 additions and 13 deletions

View file

@ -32,7 +32,7 @@ struct Block {
static constexpr size_t const c_max_recursion = 5000;
struct RegexResult final {
struct REGEX_API RegexResult final {
bool success { false };
size_t count { 0 };
Vector<Match> matches;
@ -44,10 +44,10 @@ struct RegexResult final {
};
template<class Parser>
class Regex;
class REGEX_API Regex;
template<class Parser>
class Matcher final {
class REGEX_API Matcher final {
public:
Matcher(Regex<Parser> const* pattern, Optional<typename ParserTraits<Parser>::OptionsType> regex_options = {})
@ -78,7 +78,7 @@ private:
};
template<class Parser>
class Regex final {
class REGEX_API Regex final {
public:
ByteString pattern_value;
regex::Parser::Result parser_result;