Skip to content
Snippets Groups Projects
  1. Apr 25, 2013
    • Kai Koehne's avatar
      Debugger: Change default gdb engine breakpoint "path usage" to "full" · cb857b47
      Kai Koehne authored
      
      Setting breakpoints by file name and line does not work robustly when
      using gdb, with neither the full path, nor with just the baseline. Since
      typically one of the options work, Creator offers a per-breakpoint choice
      of which approach to use. Traditionally, using the full path broke more
      often, so the default was "short". Lately (gdb 7.3+) using the full path
      seems to be more robust, so the default should be changed. Manual
      overriding to "short" is still possible.
      
      Change-Id: I9e857c86a63964bdacf9bebc5444ea752e5974f8
      Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
      Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
      cb857b47
  2. Apr 23, 2013
  3. Apr 19, 2013
  4. Apr 11, 2013
  5. Apr 10, 2013
  6. Apr 08, 2013
  7. Apr 02, 2013
  8. Mar 26, 2013
  9. Mar 22, 2013
  10. Mar 11, 2013
  11. Mar 08, 2013
  12. Mar 06, 2013
  13. Feb 27, 2013
  14. Feb 26, 2013
  15. Feb 16, 2013
  16. Feb 07, 2013
  17. Feb 01, 2013
  18. Jan 31, 2013
  19. Jan 29, 2013
  20. Jan 25, 2013
  21. Jan 24, 2013
  22. Jan 17, 2013
  23. Jan 10, 2013
  24. Jan 09, 2013
  25. 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
  26. Dec 29, 2012
  27. Dec 20, 2012
  28. Nov 17, 2012
  29. Nov 16, 2012
  30. Nov 09, 2012
Loading