diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-02-22 21:12:58 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-02-22 21:12:58 (GMT) |
commit | 30d347bf8046775d6eab9bd8f70dbf3c3204e7b7 (patch) | |
tree | e1787b66788b9ab6ea5e2891b935ac626b96b2cc /src/vhdljjparser.cpp | |
parent | cb34071ca4f1abd9e002c8bb05f08fd56a8798e5 (diff) | |
download | Doxygen-30d347bf8046775d6eab9bd8f70dbf3c3204e7b7.zip Doxygen-30d347bf8046775d6eab9bd8f70dbf3c3204e7b7.tar.gz Doxygen-30d347bf8046775d6eab9bd8f70dbf3c3204e7b7.tar.bz2 |
Some performance tweaks + remove setting of global locale
Diffstat (limited to 'src/vhdljjparser.cpp')
-rw-r--r-- | src/vhdljjparser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vhdljjparser.cpp b/src/vhdljjparser.cpp index 845602d..3852045 100644 --- a/src/vhdljjparser.cpp +++ b/src/vhdljjparser.cpp @@ -272,9 +272,9 @@ void VHDLOutlineParser::handleFlowComment(const char* doc) int VHDLOutlineParser::checkInlineCode(QCString &doc) { - static std::regex csRe("[\\\\@]code"); - static std::regex cendRe("[[:space:]]*[\\\\@]endcode"); - static std::regex cbriefRe("[\\\\@]brief"); + static const std::regex csRe("[\\\\@]code", std::regex::optimize); + static const std::regex cendRe("[[:space:]]*[\\\\@]endcode", std::regex::optimize); + static const std::regex cbriefRe("[\\\\@]brief", std::regex::optimize); // helper to simulate behavior of QString.find(const QRegExp &re,int pos) auto findRe = [](const QCString &str,const std::regex &re,int pos=0) -> int |