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