Skip to content
Snippets Groups Projects
  1. Jan 14, 2013
  2. Jan 08, 2013
    • 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
  3. Dec 04, 2012
  4. Nov 22, 2012
  5. Nov 20, 2012
  6. Oct 31, 2012
  7. Oct 17, 2012
  8. Oct 15, 2012
  9. Oct 11, 2012
  10. Oct 10, 2012
  11. Oct 05, 2012
  12. Jul 20, 2012
  13. Jul 19, 2012
  14. Jul 17, 2012
  15. Jun 29, 2012
  16. Jun 20, 2012
  17. Mar 29, 2012
    • 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
  18. Mar 13, 2012
  19. Feb 23, 2012
  20. Feb 20, 2012
  21. Feb 15, 2012
  22. Feb 10, 2012
    • Leandro Melo's avatar
      Improve code-assist API isSortable · 70b64280
      Leandro Melo authored
      
      Now IGenericProposalModel::isSortable also takes the current prefix
      as a parameter. This is particularly useful for cases like in the C++
      completion: For global completions it will only sort if there's
      already a content prefix - Notice, however, that the "sorting threshold"
      for a maximum number of items is still kept in IGenericProposalModel::sort.
      
      Task-number: QTCREATORBUG-6404
      Change-Id: I3c2f282aa565287b8b4989930b6a27093862ef25
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      70b64280
  23. Jan 26, 2012
  24. Jan 24, 2012
  25. Jan 13, 2012
  26. Nov 10, 2011
    • hjk's avatar
      more Id type fixes · 82f55736
      hjk authored
      
      Change-Id: I3720946ba5485696822976567d83b4d6cb1fb283
      
      x
      
      Change-Id: Iab58bc34bc56371405d132315573b484a533b77c
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      82f55736
  27. Nov 03, 2011
  28. Oct 17, 2011
    • Yuchen Deng's avatar
      C++: Improve completion assist · 4ea9c219
      Yuchen Deng authored
      
      Avoid inserting characters that are already there.
      e.g.
      int testFly() {}
      te|Fly()
      When triggers a completion, the code will changed to:
      testFly()|
      But in before, the code will changed to:
      testFly()|Fly()
      
      Notice:  Character of '|' show the cursor position.
      
      Change-Id: I6c111e30356b2549aebc6fbea05608e70d6ab41f
      Merge-request: 398
      Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
      4ea9c219
  29. Sep 12, 2011
  30. Sep 08, 2011
  31. Sep 07, 2011
  32. Aug 08, 2011
  33. May 26, 2011
  34. May 20, 2011
  35. May 19, 2011
Loading