1. 28 Oct, 2015 3 commits
  2. 27 Oct, 2015 1 commit
  3. 14 Oct, 2015 1 commit
    • Daniel Teske's avatar
      Fix infinite QWaitCondition:wait() in discardFile*() · a027cbcd
      Daniel Teske authored
      
      
      The original idea was that we would passively wait for another thread to
      clean up the locker, hence the check-sleep-loop. This was all dandy,
      except for *also* using the wait condition: this was a) mostly pointless
      (it would just avoid a few iterations of the wait loop) and b) buggy (if
      there were no other waiting threads, the actual reader thread wouldn't
      know that it needs to wake somebody up).
      As the passive waiting is ugly, we instead fix the use of the wait
      condition, and do away with the loop.
      
      Task-number: QTCREATORBUG-15181
      Change-Id: I477dbe7cda49ceca9aa387910d94ad763a43012b
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
      Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
      a027cbcd
  4. 23 Jul, 2015 1 commit
  5. 22 Jul, 2015 1 commit
  6. 16 Jan, 2015 1 commit
  7. 09 Oct, 2014 1 commit
  8. 08 Jan, 2014 1 commit
  9. 26 Aug, 2013 2 commits
  10. 04 Jun, 2013 1 commit
  11. 17 May, 2013 3 commits
  12. 29 Jan, 2013 1 commit
  13. 24 Jan, 2013 1 commit
  14. 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
  15. 05 Oct, 2012 1 commit
  16. 12 Sep, 2012 2 commits
  17. 07 Sep, 2012 1 commit
  18. 04 Sep, 2012 1 commit
  19. 03 Sep, 2012 5 commits
  20. 01 Aug, 2012 6 commits
  21. 19 Jul, 2012 1 commit
  22. 13 Jul, 2012 1 commit
  23. 09 Jul, 2012 2 commits
  24. 04 Jul, 2012 1 commit