1. 12 Sep, 2013 1 commit
  2. 09 Sep, 2013 1 commit
  3. 02 Sep, 2013 1 commit
    • Christian Kandeler's avatar
      Remove superfluous include paths from project files. · 72d17382
      Christian Kandeler authored
      
      
      A lot of our build system files specify unneeded include
      paths. These roughly fall into the following categories:
          a) Paths that are already set in more general files
             such as qtcreator.pri.
          b) Paths that serve no purpose at all, possibly
             left over from earlier versions of the project.
          c) Paths that act as workarounds for wrong include
             statements of the form '#include "xyz.h"', where
             xyz.h is not in the same directory as the including
            file.
      This patch removes such path specifications and fixes the offending
      include statements from case c).
      Tested on Linux, Windows and OSX with qmake and qbs.
      
      Change-Id: I039a8449f8a65df0d616b4c08081145c18ae4b15
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
      72d17382
  4. 21 Aug, 2013 1 commit
  5. 31 Jul, 2013 1 commit
  6. 19 Jul, 2013 1 commit
  7. 16 Jul, 2013 1 commit
  8. 15 Jul, 2013 1 commit
  9. 12 Jul, 2013 1 commit
  10. 09 Jul, 2013 1 commit
  11. 06 Jun, 2013 1 commit
  12. 13 May, 2013 1 commit
  13. 10 May, 2013 1 commit
  14. 19 Apr, 2013 1 commit
  15. 18 Apr, 2013 3 commits
  16. 17 Apr, 2013 1 commit
  17. 16 Apr, 2013 1 commit
  18. 15 Apr, 2013 3 commits
  19. 09 Apr, 2013 2 commits
  20. 15 Mar, 2013 1 commit
  21. 12 Mar, 2013 1 commit
  22. 06 Mar, 2013 1 commit
  23. 20 Feb, 2013 1 commit
  24. 19 Feb, 2013 1 commit
  25. 06 Feb, 2013 1 commit
  26. 30 Jan, 2013 1 commit
  27. 24 Jan, 2013 1 commit
  28. 16 Jan, 2013 1 commit
  29. 08 Jan, 2013 2 commits
    • Francois Ferrand's avatar
      C++: fix constructor definition parsing. · 5e8c3f4b
      Francois Ferrand authored
      
      
      When a constructor is defined with a single, unnamed argument of a custom type without
      extra type specifiers (const...), then the constructor was not identified as such.
      There was an heuristic in case the constructor was in the class definition, but not if the
      the constructor was defined later.
      
      Examples:
      
      class Arg;
      class Other;
      
      class Foo {
        Foo(Arg /*arg*/);               // working
        Foo(const Arg /*arg*/);         // working
        Foo(int /*arg*/);               // working
        Foo(Other /*arg*/)         {}   // working
      };
      
      Foo::Foo(Arg /*arg*/)        {}   // used not to work, fixed
      Foo::Foo(Arg arg){}               // working
      Foo::Foo(const Arg /*arg*/)  {}   // working
      Foo::Foo(int arg)            {}   // working
      
      Change-Id: I741e4ba62672ddc99a837fdcdc27996fba5ae6c7
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      5e8c3f4b
    • 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
  30. 03 Jan, 2013 2 commits
  31. 20 Dec, 2012 1 commit
  32. 06 Dec, 2012 1 commit
  33. 28 Nov, 2012 1 commit