1. 21 Mar, 2013 1 commit
  2. 15 Feb, 2013 1 commit
  3. 14 Feb, 2013 2 commits
  4. 06 Feb, 2013 1 commit
  5. 29 Jan, 2013 1 commit
  6. 24 Jan, 2013 3 commits
  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. 28 Nov, 2012 2 commits
  9. 08 Nov, 2012 1 commit
  10. 07 Nov, 2012 1 commit
  11. 17 Oct, 2012 1 commit
  12. 05 Oct, 2012 1 commit
  13. 19 Jul, 2012 1 commit
  14. 19 Jun, 2012 1 commit
  15. 14 Mar, 2012 1 commit
  16. 16 Feb, 2012 1 commit
    • Erik Verbruggen's avatar
      Supply c++11 flags and per-project info to c++ code model. · 3aab8bea
      Erik Verbruggen authored
      A manual squash/merge of the changes below, plus a couple of subsequent
      code fixes.
      
      59085aa5fbb99e2d786cd2c1a06c24a111ccb49f:
          Modify CppModel::ProjectInfo
      
          Adding per project node information, to pass on the correct
          defines/includes for each file, instead of aggregating them incorrectly.
      
          Also split up SOURCES and OBJECTIVE_SOURCES.
      
          Also ask the toolchain to convert the compilerflags to flags the
          codemodel understands, for now only gcc and only c++11.
      
          Also make the toolchain aware of the flags used to compile, so that it
          can emit the correct defines.
      
          Note: No header files are passed on.
      
      74028802314cd4e75b41b46407433e07090a304d:
          GCC: Evaluate cxxflags when checking for predefined macros
      
      ebaaa4957e4c02cc9637a998eddae1d0acd74f83:
          MSVC: Take cxxflags into account when checking for predefined macros
      
      9bfce7e889bcf7bcc47bf880e3ea25945ca7d0d7:
          Compile fixes
      
      Change-Id: I9de94ad038dfc5dc1987732e84b13fb4419c96f5
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@nokia.com>
      3aab8bea
  17. 15 Feb, 2012 1 commit
  18. 10 Feb, 2012 1 commit
  19. 26 Jan, 2012 1 commit
  20. 24 Jan, 2012 1 commit
  21. 23 Jan, 2012 2 commits
    • Leandro Melo's avatar
      C++: Fix "reference" file in symbol finder · b97b45a3
      Leandro Melo authored
      Througout the initial review the singleton was transformed into an
      ordinary class, but a error was introduced: The "reference" file was
      incorrectly assumed to be the editors file, which is wrong, since
      it should be the declaration file.
      
      Change-Id: Iad3e25a690fa8bd07a18184b24b10f8dea965332
      Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
      b97b45a3
    • 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
  22. 13 Jan, 2012 1 commit
  23. 12 Jan, 2012 1 commit
  24. 10 Jan, 2012 1 commit
  25. 18 Dec, 2011 1 commit
    • Friedemann Kleint's avatar
      CppEditor: Improve string literal quick fix. · 30374e2b
      Friedemann Kleint authored
      - Add conversion for single character constants, offering
        to convert them characters or QLatin1Char.
      - Offer conversions from character constants to string constants.
      - Rewrite the WrapStringLiteral::Operation class such that it
        takes a mask of actions to perform which can be combined
        in arbitrary ways. Provide static convenience functions
        that can be used for the Translation/Objective C conversion
        as well.
      - Move code outside class to reduce indentation.
      - Use its functionality for the Translation/Objective C
        conversion as well, reducing redundant analysis/operation code.
      
      Change-Id: If32c16a705cfc1cc20a48ab1c93b5053467d1749
      Reviewed-by: default avatarLeandro Melo <leandro.melo@nokia.com>
      30374e2b
  26. 02 Dec, 2011 1 commit
  27. 03 Nov, 2011 1 commit
  28. 25 Oct, 2011 1 commit
  29. 12 Oct, 2011 1 commit
  30. 30 Sep, 2011 1 commit
  31. 05 Sep, 2011 1 commit
  32. 19 Aug, 2011 1 commit
    • Christian Kamm's avatar
      Refactoring changes: Cleanup and improvements. · 8a6d767a
      Christian Kamm authored
      Previously RefactoringFiles were usually passed around by value.
      However, since a RefactoringFile may sometimes own a QTextDocument
      (when it was read from a file), that's not great and caused the
      file to be reread after every copy.
      
      With this change RefactoringFile becomes noncopyable and is always
      owned by a shared pointer.
      
      This change also allowed having const RefactoringFiles which is
      useful because they can be safely used from other threads. See
      CppRefactoringChanges::fileNoEditor.
      
      Change-Id: I9045921d6d0f6349f9558ff2a3d8317ea172193b
      Reviewed-on: http://codereview.qt.nokia.com/3084Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
      8a6d767a
  33. 15 Aug, 2011 1 commit
  34. 08 Jun, 2011 1 commit
  35. 18 May, 2011 1 commit
    • Leandro Melo's avatar
      New code assist API · bec4f024
      Leandro Melo authored
      This is a re-work of our completion engine. Primary goals are:
      
      - Allow the computation to run in a separate thread so the GUI is not locked.
      - Support a model-based approach. QStrings are still needed (filtering, etc), but
      internal structures are free to use more efficient representations.
      - Unifiy all kinds of *assist* into a more reusable and extensible framework.
      - Remove unnecessary dependencies on the text editor so we have more generic
      and easily "plugable" components (still things to be resolved).
      bec4f024