Skip to content
Snippets Groups Projects
  1. Feb 19, 2013
  2. Jan 29, 2013
  3. Jan 16, 2013
  4. Jan 08, 2013
    • 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. Dec 28, 2012
  6. Dec 26, 2012
  7. Dec 21, 2012
    • Orgad Shaneh's avatar
      BinEditor: Fix selection · b9511fe1
      Orgad Shaneh authored
      
      * Last column is not selectable using the mouse
      * Last byte is not selectable at all
      
      Task-number: QTCREATORBUG-5209
      Change-Id: I9b87819818bb3dab80ef2803208391599d206f1f
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      b9511fe1
  8. Dec 20, 2012
  9. Nov 27, 2012
  10. Nov 20, 2012
  11. Oct 05, 2012
  12. Oct 03, 2012
  13. Oct 01, 2012
  14. Sep 27, 2012
  15. Sep 18, 2012
  16. Jul 30, 2012
  17. Jul 19, 2012
  18. Jun 28, 2012
  19. Jun 19, 2012
  20. Jun 03, 2012
  21. May 25, 2012
  22. May 16, 2012
  23. May 07, 2012
  24. May 03, 2012
  25. Apr 18, 2012
  26. Apr 17, 2012
  27. Apr 10, 2012
  28. Mar 13, 2012
  29. Mar 06, 2012
  30. Mar 02, 2012
  31. Feb 28, 2012
  32. Feb 20, 2012
Loading