Skip to content
Snippets Groups Projects
  1. Sep 03, 2013
  2. Aug 01, 2013
  3. Jul 09, 2013
  4. Jul 08, 2013
  5. Jun 03, 2013
  6. May 29, 2013
  7. May 28, 2013
  8. May 27, 2013
  9. May 24, 2013
  10. May 23, 2013
  11. May 15, 2013
  12. Apr 17, 2013
  13. 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
  14. Mar 04, 2013
  15. Jan 29, 2013
  16. Jan 23, 2013
  17. 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
  18. Jan 21, 2013
  19. Jan 19, 2013
  20. Jan 18, 2013
  21. Jan 16, 2013
  22. Jan 15, 2013
  23. Jan 12, 2013
  24. Jan 11, 2013
  25. Jan 10, 2013
  26. Jan 09, 2013
  27. Jan 08, 2013
  28. Jan 07, 2013
Loading