Skip to content
Snippets Groups Projects
  1. Aug 13, 2014
  2. May 09, 2014
  3. May 08, 2014
  4. Apr 14, 2014
  5. Apr 11, 2014
  6. Mar 07, 2014
  7. Jan 24, 2014
  8. Jan 07, 2014
  9. Dec 23, 2013
  10. Dec 12, 2013
  11. Oct 13, 2013
  12. Oct 11, 2013
  13. Sep 13, 2013
  14. Sep 05, 2013
  15. Sep 04, 2013
  16. Sep 03, 2013
  17. Aug 01, 2013
  18. Jul 09, 2013
  19. Jul 08, 2013
  20. Jun 03, 2013
  21. May 29, 2013
  22. May 28, 2013
  23. May 27, 2013
  24. May 24, 2013
  25. May 23, 2013
  26. May 15, 2013
  27. Apr 17, 2013
  28. Apr 12, 2013
    • Manuel Klimek's avatar
      Revamps structural error detection / handling. · 67d080da
      Manuel Klimek authored
      Previously we'd only detect structural errors on the very first level.
      This leads to incorrectly balanced braces not being discovered, and thus
      incorrect indentation.
      
      This change fixes the problem by:
      - changing the parser to use an error state that can be detected
        anywhere inside the productions, for example if we get an eof on
        SOME_MACRO({ some block <eof>
      - previously we'd never break lines when we discovered a structural
        error; now we break even in the case of a structural error if there
        are two unwrapped lines within the same line; thus,
        void f() { while (true) { g(); y(); } }
        will still be re-formatted, even if there's missing braces somewhere
        in the file
      - still exclude macro definitions from generating structural error;
        macro definitions are inbalanced snippets
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179379 91177308-0d34-0410-b5e6-96231b3b80d8
      67d080da
  29. Mar 04, 2013
  30. Jan 29, 2013
  31. Jan 23, 2013
  32. Jan 22, 2013
    • Manuel Klimek's avatar
      Implements more principled comment parsing. · 86721d2a
      Manuel Klimek authored
      Changing nextToken() in the UnwrappedLineParser to get the next
      non-comment token. This allows us to correctly layout a whole class of
      snippets, like:
      
      if /* */(/* */ a /* */) /* */
        f() /* */; /* */
      else /* */
        g();
      
      Fixes a bug in the formatter where we would assume there is a previous
      non-comment token.
      Also adds the indent level of an unwrapped line to the debug output in
      the parser.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173168 91177308-0d34-0410-b5e6-96231b3b80d8
      86721d2a
Loading