Skip to content
  • Waqar Ahmed's avatar
    add check: Use Static QRegularExpression · 43161934
    Waqar Ahmed authored
    This check checks for cases like:
    
    ```
    if (QString.contains(QRegularExpression("[a-z]")) { ... }
    ```
    
    and suggests to use a `static` `QRegularExpression` instance because
    `QRegularExpression` will compile the pattern each time which can be
    really bad for performance.
    43161934
Loading