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