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