1. 17 May, 2013 1 commit
  2. 29 Jan, 2013 1 commit
  3. 24 Jan, 2013 1 commit
  4. 08 Jan, 2013 1 commit
    • Orgad Shaneh's avatar
      Remove braces for single lines of conditions · 29a93998
      Orgad Shaneh authored
      
      
      #!/usr/bin/env ruby
      
      Dir.glob('**/*.cpp') { |file|
        # skip ast (excluding paste, astpath, and canv'ast'imer)
        next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i
        s = File.read(file)
        next if s.include?('qlalr')
        orig = s.dup
        s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m|
          res = $&
          if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces
            res
          else
            res.gsub!('} else', 'else')
            res.gsub!(/\n +} *\n/m, "\n")
            res.gsub(/ *{$/, '')
          end
        }
        s.gsub!(/ *$/, '')
        File.open(file, 'wb').write(s) if s != orig
      }
      
      Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      29a93998
  5. 05 Oct, 2012 1 commit
  6. 12 Sep, 2012 2 commits
  7. 07 Sep, 2012 1 commit
  8. 04 Sep, 2012 1 commit
  9. 03 Sep, 2012 5 commits
  10. 01 Aug, 2012 6 commits
  11. 19 Jul, 2012 1 commit
  12. 13 Jul, 2012 1 commit
  13. 09 Jul, 2012 2 commits
  14. 04 Jul, 2012 4 commits
  15. 12 Apr, 2012 1 commit
  16. 15 Feb, 2012 1 commit
  17. 26 Jan, 2012 1 commit
  18. 03 Nov, 2011 1 commit
  19. 21 Oct, 2011 1 commit
  20. 30 May, 2011 1 commit
  21. 06 May, 2011 1 commit
  22. 13 Apr, 2011 1 commit
  23. 06 Apr, 2011 4 commits
    • Oswald Buddenhagen's avatar
      continue parsing line despite errors · 17740d2e
      Oswald Buddenhagen authored
      as far as possible, anyway. and suppress messages after the first one.
      this avoids that scope nesting gets thrown off and thus spurious
      followup-errors crop up.
      
      as a "side effect", this fixes a crash resulting from us rewinding the
      token stream but ignoring the block stack on the way.
      
      Task-number: QTCREATORBUG-4368
      17740d2e
    • Oswald Buddenhagen's avatar
      reshuffle word counting in expressions · d9e5f676
      Oswald Buddenhagen authored
      this makes the value list sizehints more correct: instead of the number
      of literals and expansions, it's now the number of actual words, and
      that only if the expression starts with a literal (otherwise the
      pre-allocation is discarded anyway).
      the performance impact seems negligible, with qt being a tad slower and
      creator a tad faster.
      
      as a side effect, complaining about excess words in a test expression
      does not immediately terminate the current line's parsing.
      d9e5f676
    • Oswald Buddenhagen's avatar
      remove useless initializations · c87eda57
      Oswald Buddenhagen authored
      reverts 6f5bf29e. coverity sucks, thankyouverymuch.
      c87eda57
    • Oswald Buddenhagen's avatar
      const-correctness · 5433b43e
      Oswald Buddenhagen authored
      5433b43e