1. 13 Aug, 2013 1 commit
  2. 12 Aug, 2013 1 commit
  3. 08 Aug, 2013 3 commits
  4. 06 Aug, 2013 1 commit
  5. 05 Aug, 2013 4 commits
  6. 01 Aug, 2013 4 commits
  7. 03 Jun, 2013 1 commit
  8. 29 Jan, 2013 1 commit
  9. 10 Jan, 2013 1 commit
  10. 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
  11. 27 Nov, 2012 1 commit
  12. 20 Nov, 2012 1 commit
  13. 05 Oct, 2012 1 commit
  14. 19 Jul, 2012 1 commit
  15. 06 Mar, 2012 1 commit
  16. 23 Feb, 2012 1 commit
  17. 15 Feb, 2012 1 commit
  18. 26 Jan, 2012 1 commit
  19. 17 Jan, 2012 1 commit
  20. 11 Jan, 2012 1 commit
  21. 28 Dec, 2011 2 commits
    • Nicolas Arnaud-Cormos's avatar
      Analyzer: refactor global and project tool settings usage. · 9b19a9c8
      Nicolas Arnaud-Cormos authored
      
      
      IAnalyzerTool has now 2 new virtual methods used to create the global and per-project settings.
      No need to create any static factory method and pass a pointer to them to the AnalyzerGlobalSettings
      instance anymore.
      
      The Valgrind plugin is now using it, the memchecktool creates the settings for all
      valgrind tools.
      
      Change-Id: I3c5845ceb7151130032cfff4ab5b7b36ca2459d9
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      9b19a9c8
    • Nicolas Arnaud-Cormos's avatar
      Analyzer: create a run control factory for all tools. · 4a843211
      Nicolas Arnaud-Cormos authored
      
      
      Having one factory per tool (or plugin) created some bugs:
       * analyzer project settings being created twice
       * per-project analyzer settings widget duplicated
      Also, most of the code from the run control factory were copied.
      
      Now, the Analyzer only creates one run control factory shared among all tools, and the IAnalyzerTool
      has two new virtual method: canRun and createStartParameters. It simplify the code a bit, and
      creating a new analyzer tool is easier (only two classes to subclass: IAnalyzerTool and IAnalyzerEngine).
      
      Change-Id: I4e180846a26b74b2b77cb99bc97534d680a80a4d
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      4a843211
  22. 13 Dec, 2011 1 commit
  23. 15 Nov, 2011 1 commit
  24. 03 Nov, 2011 1 commit
  25. 05 Sep, 2011 1 commit
  26. 13 Jul, 2011 2 commits
  27. 11 Jul, 2011 1 commit
  28. 07 Jul, 2011 1 commit
  29. 05 Jul, 2011 1 commit
  30. 04 Jul, 2011 1 commit