1. 24 Jun, 2013 1 commit
  2. 20 Jun, 2013 1 commit
  3. 17 Jun, 2013 1 commit
  4. 03 Jun, 2013 1 commit
  5. 24 May, 2013 1 commit
  6. 26 Apr, 2013 4 commits
  7. 22 Apr, 2013 1 commit
  8. 16 Apr, 2013 2 commits
  9. 11 Apr, 2013 1 commit
  10. 10 Apr, 2013 1 commit
  11. 09 Apr, 2013 1 commit
  12. 08 Apr, 2013 1 commit
  13. 03 Apr, 2013 1 commit
  14. 27 Mar, 2013 1 commit
  15. 21 Mar, 2013 1 commit
  16. 12 Mar, 2013 1 commit
  17. 08 Mar, 2013 2 commits
  18. 27 Feb, 2013 1 commit
  19. 19 Feb, 2013 1 commit
  20. 30 Jan, 2013 1 commit
  21. 29 Jan, 2013 1 commit
  22. 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
  23. 11 Jan, 2013 1 commit
  24. 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
  25. 04 Jan, 2013 1 commit
  26. 20 Dec, 2012 1 commit
  27. 04 Dec, 2012 1 commit
  28. 03 Dec, 2012 1 commit
  29. 28 Nov, 2012 1 commit
  30. 26 Nov, 2012 1 commit
  31. 22 Nov, 2012 1 commit
  32. 06 Nov, 2012 1 commit
  33. 23 Oct, 2012 1 commit
  34. 16 Oct, 2012 1 commit
  35. 15 Oct, 2012 1 commit