Skip to content
Snippets Groups Projects
  1. Jan 19, 2016
  2. Mar 05, 2015
  3. Feb 04, 2015
    • Orgad Shaneh's avatar
      C++: Remove unneeded qualifications · 65e7db42
      Orgad Shaneh authored
      
      Mostly done using the following ruby script:
      Dir.glob('**/*.cpp').each { |file|
        next if file =~ %r{src/shared/qbs|/qmljs/}
        s = File.read(file)
        s.scan(/^using namespace (.*);$/) {
          ns = $1
          t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m|
            before = $1
            char = $2
            if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/
              m
            else
              before + char
            end
          }
          if t != s
            puts file
            File.open(file, 'w').write(t)
          end
        }
      }
      
      Change-Id: I6fbe13ddc1485efe95c3156097bf41d90c0febac
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
      65e7db42
  4. Jan 16, 2015
  5. Oct 09, 2014
  6. Sep 29, 2014
  7. Sep 25, 2014
  8. Sep 19, 2014
  9. Sep 04, 2014
  10. Aug 29, 2014
    • Erik Verbruggen's avatar
      C++: Fix possible use-after-free of AST. · c8c2aaaf
      Erik Verbruggen authored
      
      The CppRefactoringChanges::fileNoEditor takes a Document from the
      snapshot it has. Although this snapshot is a safe copy, it might have
      been gotten right after it was updated by indexing. Such a document will
      still have its AST. If this AST is used by any refactoring action
      without retaining it, the pointers will be dangling after a short while
      (specifically: after the locator has extracted all the information).
      
      The fileNoEditor method is called by the declDefLinkFinder to search
      the target document. The snapshot is obtained before, and contains the
      document for the semantic info. However, the target document will not
      come from the semantic info, but from the indexer.
      
      Change-Id: I212ff41dde6910e94e80552b2c3e5911fe9496ae
      Task-number: QTCREATORBUG-11262
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      c8c2aaaf
  11. Aug 20, 2014
  12. Jun 02, 2014
  13. May 23, 2014
  14. May 15, 2014
  15. Jan 21, 2014
  16. Jan 08, 2014
  17. Sep 11, 2013
  18. Apr 10, 2013
  19. Apr 08, 2013
  20. Apr 03, 2013
  21. Jan 29, 2013
  22. Oct 15, 2012
  23. Oct 05, 2012
  24. Jul 19, 2012
  25. Feb 15, 2012
  26. Jan 26, 2012
  27. Jan 24, 2012
  28. Jan 12, 2012
  29. Nov 03, 2011
  30. Sep 23, 2011
  31. Aug 19, 2011
    • 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/3084
      
      
      Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
      8a6d767a
  32. Aug 16, 2011
  33. May 24, 2011
  34. May 06, 2011
  35. Apr 13, 2011
  36. Feb 22, 2011
    • hjk's avatar
      texteditor: merge ITextEditable into ITextEditor · f576ad9f
      hjk authored
      rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor
      rename BaseTextEditor{,Widget} subclasses
      rename editableInterface->editorInterface
      rename createEditableInterface->createEditor
      minor cleanups after renamings
      f576ad9f
  37. Feb 21, 2011
  38. Feb 07, 2011
  39. Jan 12, 2011
Loading