1. 14 May, 2013 3 commits
  2. 10 May, 2013 1 commit
  3. 02 May, 2013 1 commit
  4. 29 Apr, 2013 1 commit
  5. 24 Apr, 2013 1 commit
  6. 18 Apr, 2013 2 commits
  7. 17 Apr, 2013 1 commit
  8. 15 Apr, 2013 3 commits
  9. 10 Apr, 2013 2 commits
  10. 03 Apr, 2013 1 commit
  11. 21 Mar, 2013 1 commit
  12. 15 Feb, 2013 1 commit
  13. 14 Feb, 2013 2 commits
  14. 06 Feb, 2013 1 commit
  15. 29 Jan, 2013 1 commit
  16. 24 Jan, 2013 3 commits
  17. 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
  18. 28 Nov, 2012 2 commits
  19. 08 Nov, 2012 1 commit
  20. 07 Nov, 2012 1 commit
  21. 17 Oct, 2012 1 commit
  22. 05 Oct, 2012 1 commit
  23. 19 Jul, 2012 1 commit
  24. 19 Jun, 2012 1 commit
  25. 14 Mar, 2012 1 commit
  26. 16 Feb, 2012 1 commit
    • Erik Verbruggen's avatar
      Supply c++11 flags and per-project info to c++ code model. · 3aab8bea
      Erik Verbruggen authored
      
      
      A manual squash/merge of the changes below, plus a couple of subsequent
      code fixes.
      
      59085aa5fbb99e2d786cd2c1a06c24a111ccb49f:
          Modify CppModel::ProjectInfo
      
          Adding per project node information, to pass on the correct
          defines/includes for each file, instead of aggregating them incorrectly.
      
          Also split up SOURCES and OBJECTIVE_SOURCES.
      
          Also ask the toolchain to convert the compilerflags to flags the
          codemodel understands, for now only gcc and only c++11.
      
          Also make the toolchain aware of the flags used to compile, so that it
          can emit the correct defines.
      
          Note: No header files are passed on.
      
      74028802314cd4e75b41b46407433e07090a304d:
          GCC: Evaluate cxxflags when checking for predefined macros
      
      ebaaa4957e4c02cc9637a998eddae1d0acd74f83:
          MSVC: Take cxxflags into account when checking for predefined macros
      
      9bfce7e889bcf7bcc47bf880e3ea25945ca7d0d7:
          Compile fixes
      
      Change-Id: I9de94ad038dfc5dc1987732e84b13fb4419c96f5
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@nokia.com>
      3aab8bea
  27. 15 Feb, 2012 1 commit
  28. 10 Feb, 2012 1 commit
  29. 26 Jan, 2012 1 commit
  30. 24 Jan, 2012 1 commit