cullmann added a comment.

  Btw., I just tried e.g.
  
  https://code.qt.io/cgit/qt/qt5.git/tree/_clang-format
  
  that one has exactly the same issues as our file and re-flows stuff into 
single lines (even lambdas).
  
  The only thing that often hinders that is the column limit of 100 there.
  
  That on the other side make as lot of code lot harder to read, too, like:
  
    -    
cc()->unregisterCompletionModel(KTextEditor::EditorPrivate::self()->wordCompletionModel());
 // would add additional items, we don't want that in tests
    +    cc()->unregisterCompletionModel(KTextEditor::EditorPrivate::self()
    +                                            ->wordCompletionModel()); // 
would add additional items,
    +                                                                      // 
we don't want that in tests
    
    -    
highlightMatchAttribute->dynamicAttribute(Attribute::ActivateMouseIn)->setBackground(searchColor);
    -    
highlightMatchAttribute->dynamicAttribute(Attribute::ActivateMouseIn)->setForeground(foregroundColor);
    -    
highlightMatchAttribute->dynamicAttribute(Attribute::ActivateCaretIn)->setBackground(searchColor);
    -    
highlightMatchAttribute->dynamicAttribute(Attribute::ActivateCaretIn)->setForeground(foregroundColor);
    +    highlightMatchAttribute->dynamicAttribute(Attribute::ActivateMouseIn)
    +            ->setBackground(searchColor);
    +    highlightMatchAttribute->dynamicAttribute(Attribute::ActivateMouseIn)
    +            ->setForeground(foregroundColor);
    +    highlightMatchAttribute->dynamicAttribute(Attribute::ActivateCaretIn)
    +            ->setBackground(searchColor);
    +    highlightMatchAttribute->dynamicAttribute(Attribute::ActivateCaretIn)
    +            ->setForeground(foregroundColor);
  
  (and that is just one of .... places in KTextEditor that look like that 
afterwards).

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D24568

To: cullmann, #frameworks, dfaure, broulik, davidedmundson
Cc: zzag, sitter, mwolff, ochurlaud, nalvarez, kossebau, aacid, davidedmundson, 
dhaumann, apol, ognarb, kde-frameworks-devel, kde-buildsystem, LeGast00n, GB_2, 
bencreasy, michaelh, ngraham, bruns

Reply via email to