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