1. 16 Apr, 2013 1 commit
  2. 03 Apr, 2013 1 commit
  3. 20 Mar, 2013 1 commit
  4. 19 Feb, 2013 1 commit
  5. 29 Jan, 2013 1 commit
  6. 24 Jan, 2013 1 commit
  7. 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
  8. 20 Dec, 2012 1 commit
  9. 15 Oct, 2012 2 commits
  10. 05 Oct, 2012 1 commit
  11. 06 Aug, 2012 1 commit
  12. 19 Jul, 2012 1 commit
  13. 29 Mar, 2012 1 commit
    • Erik Verbruggen's avatar
      [C++] Rewrite of the preprocessor. · 60db5736
      Erik Verbruggen authored
      
      
      This rewrite fixes a couple of issues with the pre-processor. It now
      supports:
      - macros in macro bodies
      - stringification of parameters [cpp.stringize]
      - the concatenation operator [cpp.concat]
      - #include MACRO_HERE
      - defined() inside macro bodies used in pp-conditions.
      
      Change-Id: Ifdb78041fb6afadf44f939a4bd66ce2832b8601f
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      60db5736
  14. 13 Mar, 2012 1 commit
  15. 15 Feb, 2012 1 commit
  16. 26 Jan, 2012 1 commit
  17. 23 Jan, 2012 1 commit
    • Leandro Melo's avatar
      C++: Improve file accuracy when finding symbols · 466ea484
      Leandro Melo authored
      
      
      This patch introduces a priority-based mechanism when searching for certains
      symbols in the snapshot. The priority corresponds to how similar the file path
      from the "reference" symbol is to the file path from the "candidate" symbol.
      This solves a variety of issues when matching "equivalent" symbols but that
      are in another file/project, such as when following a function declaration,
      a forward class declaration, or adding a definition through a quickfix.
      
      There's now a symbol finder which will compute the "best" search order and cache
      the most recent results. A consequence is that following symbols in some cases
      is slower, but not apparently significatly.
      
      Note: The "find" functions were moved from the Snapshot to the new SymbolFinder
      class.
      
      Task-number: QTCREATORBUG-6697
      Task-number: QTCREATORBUG-6792
      
      Change-Id: Ia518f014275fec1f4d0cb3224bd4e06a9df6d557
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      466ea484
  18. 13 Jan, 2012 1 commit
  19. 03 Nov, 2011 1 commit
  20. 31 Oct, 2011 1 commit
  21. 20 Sep, 2011 1 commit
  22. 08 Sep, 2011 1 commit
  23. 31 Aug, 2011 1 commit
  24. 25 Aug, 2011 1 commit
  25. 24 Aug, 2011 1 commit
  26. 16 Aug, 2011 2 commits
  27. 10 Aug, 2011 1 commit
  28. 06 May, 2011 1 commit
  29. 13 Apr, 2011 1 commit
  30. 03 Mar, 2011 1 commit
  31. 12 Jan, 2011 2 commits
  32. 10 Jan, 2011 1 commit
  33. 06 Jan, 2011 1 commit
  34. 04 Jan, 2011 1 commit
  35. 17 Dec, 2010 1 commit
  36. 10 Dec, 2010 1 commit
  37. 19 Nov, 2010 1 commit