Skip to content
Snippets Groups Projects
  1. Jan 29, 2014
  2. Jan 08, 2014
  3. Nov 08, 2013
  4. Oct 05, 2013
  5. Oct 02, 2013
  6. Sep 30, 2013
  7. Aug 14, 2013
  8. Jun 17, 2013
  9. Jun 03, 2013
  10. May 24, 2013
  11. May 06, 2013
  12. May 04, 2013
  13. Apr 29, 2013
  14. Apr 05, 2013
  15. Jan 29, 2013
  16. Jan 18, 2013
  17. 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
  18. Jan 07, 2013
  19. Dec 30, 2012
  20. Oct 05, 2012
  21. Jul 19, 2012
  22. Jun 04, 2012
  23. May 03, 2012
  24. Apr 30, 2012
  25. Mar 14, 2012
  26. Feb 15, 2012
  27. Jan 26, 2012
  28. Jan 13, 2012
  29. Nov 23, 2011
  30. Nov 03, 2011
  31. May 06, 2011
  32. Apr 13, 2011
  33. Jan 12, 2011
  34. Dec 17, 2010
  35. Nov 23, 2010
    • Tobias Hunger's avatar
      Git: Only enable submit button when a description is available · d1976d19
      Tobias Hunger authored
      Only enable submit button in the git submit editor when a non-empty
      desciption of the patch is available. Git rejects empty commit messages
      and old versions fail without even giving an error Qt Creator can detect,
      so this should make commiting a bit more save.
      
      Task-number: QTCREATORBUG-2410
      d1976d19
Loading