This repository has been archived by the owner on May 31, 2023. It is now read-only.
Switch to using pcre::regex instead of boost::regex #190
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Drop dependency on Boost.Regex library and use PCRE-based regex class
instead.
Using PCRE-based implementation is advantageous compared to using
std::regex because it has a much better performance and also has more
features, notably it supports "?<=" look-behind assertions not supported
by the standard class, that are used in the existing code.
The only regex change needed was the one replacing "\l", which is not
recognized by PCRE (nor std::regex) as a character class shorthand, with
the explicit use of "[:lower:]".
Currently PCRE is used only under POSIX systems and so the fully
functional version of test_coding_rules tool can only be built there
and a stub version, which simply outputs an error, is built by default
under MSW. This shouldn't be a problem in practice, because this tool is
only used during lmi development, which is done only on POSIX platforms.