| 14 | |
| 15 | namespace { |
| 16 | bool endsWithWordBoundary(QStringView str) |
| 17 | { |
| 18 | if (str.isEmpty()) { |
| 19 | return true; |
| 20 | } |
| 21 | const auto boundary = str.last(); |
| 22 | return !boundary.isLetterOrNumber() && boundary != QLatin1Char('_'); |
| 23 | } |
| 24 | |
| 25 | /// libclang surrounds binary operators but not angle brackets with spaces. |
| 26 | bool isOperatorSurroundedWithSpaces(QStringView str, int pos) |
no test coverage detected