1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 09:55:08 +00:00
serenity/Libraries/LibRegex
Lenny Maiorani e6f907a155 AK: Simplify constructors and conversions from nullptr_t
Problem:
- Many constructors are defined as `{}` rather than using the ` =
  default` compiler-provided constructor.
- Some types provide an implicit conversion operator from `nullptr_t`
  instead of requiring the caller to default construct. This violates
  the C++ Core Guidelines suggestion to declare single-argument
  constructors explicit
  (https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c46-by-default-declare-single-argument-constructors-explicit).

Solution:
- Change default constructors to use the compiler-provided default
  constructor.
- Remove implicit conversion operators from `nullptr_t` and change
  usage to enforce type consistency without conversion.
2021-01-12 09:11:45 +01:00
..
C AK: Simplify constructors and conversions from nullptr_t 2021-01-12 09:11:45 +01:00
Tests Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
CMakeLists.txt LibRegex: Add a regular expression library 2020-11-27 21:32:41 +01:00
Forward.h LibRegex: Implement an ECMA262-compatible parser 2020-11-27 21:32:41 +01:00
Regex.h LibRegex: Add a regular expression library 2020-11-27 21:32:41 +01:00
RegexByteCode.cpp Everywhere: Fix incorrect uses of String::format and StringBuilder::appendf 2021-01-11 21:06:32 +01:00
RegexByteCode.h Everywhere: Fix incorrect uses of String::format and StringBuilder::appendf 2021-01-11 21:06:32 +01:00
RegexDebug.h Everywhere: Replace a bundle of dbg with dbgln. 2021-01-11 21:49:29 +01:00
RegexError.h LibRegex: Add a regular expression library 2020-11-27 21:32:41 +01:00
RegexLexer.cpp LibRegex: Fix assertion when parsing '(?' 2020-12-03 10:51:56 +01:00
RegexLexer.h LibRegex: Remove Lexer::slice_back() and just use StringViews 2020-12-06 15:38:40 +01:00
RegexMatch.h LibJS: Hook up Regex<ECMA262> to RegExpObject and implement `test()' 2020-11-27 21:32:41 +01:00
RegexMatcher.cpp Everywhere: Replace a bundle of dbg with dbgln. 2021-01-09 21:11:09 +01:00
RegexMatcher.h LibRegex: Add a basic Regex<...>::replace() 2020-12-08 23:34:38 +01:00
RegexOptions.h LibJS: Hook up Regex<ECMA262> to RegExpObject and implement `test()' 2020-11-27 21:32:41 +01:00
RegexParser.cpp Everywhere: Fix more typos 2020-12-31 01:47:41 +01:00
RegexParser.h LibRegex: Use match_ordinary_characters() in ECMA262Parser::parse_atom() 2020-11-29 20:35:52 +01:00