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