1. 20 Jun, 2013 1 commit
  2. 17 Jun, 2013 1 commit
  3. 03 Jun, 2013 1 commit
  4. 24 May, 2013 1 commit
  5. 26 Apr, 2013 4 commits
  6. 22 Apr, 2013 1 commit
  7. 16 Apr, 2013 2 commits
  8. 11 Apr, 2013 1 commit
  9. 10 Apr, 2013 1 commit
  10. 09 Apr, 2013 1 commit
  11. 08 Apr, 2013 1 commit
  12. 03 Apr, 2013 1 commit
  13. 27 Mar, 2013 1 commit
  14. 21 Mar, 2013 1 commit
  15. 12 Mar, 2013 1 commit
  16. 08 Mar, 2013 2 commits
  17. 27 Feb, 2013 1 commit
  18. 19 Feb, 2013 1 commit
  19. 30 Jan, 2013 1 commit
  20. 29 Jan, 2013 1 commit
  21. 18 Jan, 2013 1 commit
    • Erik Verbruggen's avatar
      C++: add include-guard tracking. · dada2614
      Erik Verbruggen authored
      Track the typical #ifndef/#define/#endif usage in header files to see if
      the macro is an include guard. If so, store it in the Document. No
      behavioural change, just recording the name.
      
      This can be used in the future to track if a file needs to be re-parsed
      when a macro changes: if it was used in the file, and not defined in it
      nor being the include-guard, a file should be re-preprocessed and
      re-parsed.
      
      It can also be used to check if two files have the same include guard.
      
      Change-Id: I2715f529997a7b24a11bdbc6150652e2669f1a46
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      dada2614
  22. 11 Jan, 2013 1 commit
  23. 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
  24. 04 Jan, 2013 1 commit
  25. 20 Dec, 2012 1 commit
  26. 04 Dec, 2012 1 commit
  27. 03 Dec, 2012 1 commit
  28. 28 Nov, 2012 1 commit
  29. 26 Nov, 2012 1 commit
  30. 22 Nov, 2012 1 commit
  31. 06 Nov, 2012 1 commit
  32. 23 Oct, 2012 1 commit
  33. 16 Oct, 2012 1 commit
  34. 15 Oct, 2012 1 commit
  35. 08 Oct, 2012 1 commit
    • Andre Hartmann's avatar
      Fix encoding of non-opened include files. · 82d312aa
      Andre Hartmann authored
      The old implementation readed the file and converted the QString toUtf8,
      which seems wrong. Now use Creators default encoding.
      
      This fixes at least wrong macro offsets that leaded to highlighting
      errors in Find Usages, if there were non-ASCII characters before the
      macro definition.
      
      This should also partially solve QTCREATORBUG-7122.
      
      Change-Id: Ic4a5add5f4769bd3d5b62fc2d67598e7abf352d9
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      82d312aa