Skip to content
Snippets Groups Projects
  1. Jan 31, 2017
    • Daniel Jasper's avatar
      [clang-format] Refactor WhitespaceManager and friends · 23e46241
      Daniel Jasper authored
      The main motivation behind this is to cleanup the WhitespaceManager and
      make it more extensible for future alignment etc. features.
      Specifically, WhitespaceManager has started to copy more and more code
      that is already present in FormatToken. Instead, I think it makes more
      sense to actually store a reference to each FormatToken for each change.
      
      This has as a consequence led to a change in the calculation of indent
      levels. Now, we actually compute them for each Token ahead of time,
      which should be more efficient as it removes an unsigned value for the
      ParenState, which is used during the combinatorial exploration of the
      solution space.
      
      No functional changes intended.
      
      Review: https://reviews.llvm.org/D29300
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293616 91177308-0d34-0410-b5e6-96231b3b80d8
      23e46241
  2. Jan 30, 2017
  3. Jan 25, 2017
  4. Oct 19, 2016
  5. Jun 17, 2015
  6. Jun 09, 2015
  7. May 06, 2015
  8. Jan 21, 2015
  9. Jan 12, 2015
  10. May 09, 2014
  11. Apr 22, 2014
  12. Apr 17, 2014
  13. Mar 10, 2014
  14. Jan 14, 2014
  15. Jan 09, 2014
  16. Dec 05, 2013
  17. Nov 26, 2013
  18. Nov 12, 2013
  19. Oct 30, 2013
  20. Sep 27, 2013
  21. Sep 16, 2013
  22. Sep 10, 2013
  23. Sep 05, 2013
  24. Aug 08, 2013
  25. Jul 15, 2013
  26. Jul 08, 2013
  27. Jul 01, 2013
  28. Jun 20, 2013
  29. Jun 19, 2013
  30. Jun 14, 2013
  31. Jun 11, 2013
  32. Jun 07, 2013
    • Alexander Kornienko's avatar
      Fixed calculation of penalty when breaking tokens. · 2785b9aa
      Alexander Kornienko authored
      Summary:
      Introduced two new style parameters: PenaltyBreakComment and
      PenaltyBreakString. Add penalty for each character of a breakable token beyond
      the column limit (this relates mainly to comments, as they are broken only on
      whitespace). Tuned PenaltyBreakComment to prefer comment breaking over breaking
      inside most binary expressions.
      Fixed a bug that prevented *, & and && from being considered TT_BinaryOperator
      in the presense of adjacent comments.
      
      Reviewers: klimek, djasper
      
      Reviewed By: klimek
      
      CC: cfe-commits
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D933
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183530 91177308-0d34-0410-b5e6-96231b3b80d8
      2785b9aa
  33. Jun 05, 2013
    • Alexander Kornienko's avatar
      UTF-8 support for clang-format. · 00895106
      Alexander Kornienko authored
      Summary:
      Detect if the file is valid UTF-8, and if this is the case, count code
      points instead of just using number of bytes in all (hopefully) places, where
      number of columns is needed. In particular, use the new
      FormatToken.CodePointCount instead of TokenLength where appropriate.
      Changed BreakableToken implementations to respect utf-8 character boundaries
      when in utf-8 mode.
      
      Reviewers: klimek, djasper
      
      Reviewed By: djasper
      
      CC: cfe-commits, rsmith, gribozavr
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D918
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183312 91177308-0d34-0410-b5e6-96231b3b80d8
      00895106
  34. May 30, 2013
Loading