Skip to content

Several independent changes which generally delete code

  • Replace QStringView::mid,left,right with sliced because these functions are considered obsolete: https://doc.qt.io/qt-6/qstringview-obsolete.html
  • Add DefinitionData::resolveIncludedContext to remove code duplication
  • Compute the value returned by Definition::foldingEnabled during loading

See individual commits for more details.

highlighter_benchmark is slightly faster: 18.7s -> 18.5s

tests run very slightly faster: 3.73 -> 3.71

Binaries are a bit smaller too:

  • libKF6SyntaxHighlighting.so: 2008968 -> 1992552
  • ksyntaxhighlighter6: 44480 -> 40320

Merge request reports