Skip to content
Snippets Groups Projects
  1. Nov 08, 2013
  2. Oct 05, 2013
  3. Oct 02, 2013
  4. Sep 30, 2013
  5. Aug 14, 2013
  6. Jun 17, 2013
  7. Jun 03, 2013
  8. May 24, 2013
  9. May 06, 2013
  10. May 04, 2013
  11. Apr 29, 2013
  12. Apr 05, 2013
  13. Jan 29, 2013
  14. Jan 18, 2013
  15. 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
  16. Jan 07, 2013
  17. Dec 30, 2012
  18. Oct 05, 2012
  19. Jul 19, 2012
  20. Jun 04, 2012
  21. May 03, 2012
  22. Apr 30, 2012
  23. Mar 14, 2012
  24. Feb 15, 2012
  25. Jan 26, 2012
  26. Jan 13, 2012
  27. Nov 23, 2011
  28. Nov 03, 2011
  29. May 06, 2011
  30. Apr 13, 2011
  31. Jan 12, 2011
  32. Dec 17, 2010
  33. 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
  34. Oct 05, 2010
  35. Oct 04, 2010
Loading