1. 08 Jan, 2013 2 commits
    • 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
    • Orgad Shaneh's avatar
      VCS: Replace Q_ASSERTs with QTC_ASSERT · 73a2717b
      Orgad Shaneh authored
      Also rename m to model
      
      Change-Id: Ibb283dc2d5d0c306cbac9109a7e5fc6481ac86a8
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      73a2717b
  2. 07 Jan, 2013 10 commits
  3. 04 Jan, 2013 9 commits
  4. 03 Jan, 2013 5 commits
  5. 02 Jan, 2013 2 commits
  6. 01 Jan, 2013 2 commits
    • Daniel Teske's avatar
      Use C++11 parsing mode for CMake, AutoTools and Generic project managers · f320426c
      Daniel Teske authored
      Those 3 project managers can't easily figure out the right mode for code
      parsing. The code we are parsing is predominantly C++98 code. But for
      those using C++98 toolchains having valid C++11 code not be marked as a
      error is probably not much of a problem, whereas the reverse, using a
      C++11 toolchain and having valid code being marked as a error is
      annoying.
      
      Change-Id: I8dcc172029045cf591b3ba0adef1585f3f94fd39
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      f320426c
    • Ryan May's avatar
      Debugger: Make tabs in separate view closable. · 577fe8a4
      Ryan May authored
      Refactor the separate view from directly using a QTabWidget to a subclass
      so that the necessary signal can be hooked up.
      
      Change-Id: Ibc2653d554882a36a85162708021422843057bc1
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      577fe8a4
  7. 31 Dec, 2012 1 commit
  8. 30 Dec, 2012 9 commits