1. 19 Mar, 2014 1 commit
  2. 08 Jan, 2014 1 commit
  3. 14 Nov, 2013 1 commit
  4. 10 Oct, 2013 1 commit
  5. 29 Aug, 2013 1 commit
  6. 22 Aug, 2013 1 commit
  7. 04 Apr, 2013 1 commit
  8. 29 Jan, 2013 1 commit
  9. 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
  10. 28 Nov, 2012 2 commits
  11. 10 Oct, 2012 1 commit
  12. 05 Oct, 2012 1 commit
  13. 17 Sep, 2012 1 commit
    • Thomas Hartmann's avatar
      QmlJS.Check: Warnings for qml code not supported by Qt Quick Designer · e5699c09
      Thomas Hartmann authored
      
      
      This patch adds several warnings for qml code not supported by Qt Quick
      Designer.
      
      * WarnImperativeCodeNotEditableInVisualDesigner:
         This warns about imperative code affecting a visual property.
         e.g.: "x = 10;"
      
      * WarnUnsupportedTypeInVisualDesigner:
          This warns about types which are currently not supported.
      
      * WarnReferenceToParentItemNotSupportedByDesigner:
          This warns about things like: "width: parent.width" in
          the root item.
      
      * WarnUndefinedValueForDesigner:
          This warns about visual properties that cannot be evaluated in
          the local context.
          e.g.: "x: somethingNotDefinedInTheLocalContext.x"
      
      * WarnStatesOnlyInRootItemForDesigner:
          This warns about states not defined in the root item.
      
      All the Qt Quick designer related warnings are disabled by default
      in Check.
      
      Change-Id: If31a8199fb95dc8bf6ac613634a2e442e436e267
      Reviewed-by: default avatarChristian Kamm <kamm@incasoftware.de>
      e5699c09
  14. 22 Aug, 2012 1 commit
  15. 19 Jul, 2012 1 commit
  16. 30 Apr, 2012 1 commit
  17. 15 Feb, 2012 1 commit
  18. 26 Jan, 2012 1 commit
  19. 02 Dec, 2011 1 commit
  20. 29 Nov, 2011 2 commits
  21. 22 Nov, 2011 1 commit
  22. 08 Nov, 2011 1 commit
  23. 03 Nov, 2011 1 commit
  24. 31 Oct, 2011 2 commits
  25. 24 Oct, 2011 1 commit
  26. 21 Oct, 2011 1 commit
  27. 19 Oct, 2011 2 commits
  28. 18 Oct, 2011 2 commits
  29. 12 Oct, 2011 4 commits
  30. 10 Oct, 2011 3 commits