Skip to content
Snippets Groups Projects
  1. Oct 15, 2013
  2. Aug 29, 2013
  3. Jul 17, 2013
  4. Jun 03, 2013
  5. Apr 10, 2013
  6. Apr 03, 2013
  7. Jan 29, 2013
  8. 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
  9. Nov 28, 2012
  10. Oct 05, 2012
  11. Sep 19, 2012
  12. Jul 19, 2012
  13. Jun 06, 2012
    • Leandro Melo's avatar
      C++: Introduce unicode char/strings support · 23c637c4
      Leandro Melo authored
      
      Those are the types char16_t and char32_t along with the new
      char/string literals u'', U'', u"", u8"", and U"".
      
      This is particularly important for the use of QStringLiteral
      since in some platforms it relies on expansion such as above.
      
      Note: The string literals quickfixes still need some tunning.
      
      Task-number: QTCREATORBUG-7449
      Change-Id: Iebcfea15677dc8e0ebb6143def89a5477e1be7d4
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      23c637c4
  14. Mar 12, 2012
  15. Feb 15, 2012
  16. Jan 26, 2012
  17. Jan 24, 2012
  18. Dec 08, 2011
  19. Nov 03, 2011
  20. Oct 11, 2011
  21. Sep 21, 2011
  22. Jul 06, 2011
  23. Jun 01, 2011
  24. May 30, 2011
  25. May 24, 2011
  26. May 19, 2011
  27. May 06, 2011
  28. Apr 19, 2011
  29. Apr 13, 2011
  30. Mar 15, 2011
  31. Jan 12, 2011
  32. Jan 04, 2011
  33. Dec 17, 2010
  34. Dec 01, 2010
  35. Nov 22, 2010
  36. Nov 04, 2010
Loading