Skip to content
Snippets Groups Projects
  1. Jul 20, 2015
  2. Jul 08, 2015
  3. Jun 24, 2015
  4. Jun 10, 2015
  5. May 13, 2015
  6. Apr 24, 2015
    • Nikolai Kosjar's avatar
      CppTools: Remove separate indexing revision · d4bb5033
      Nikolai Kosjar authored
      
      For indexing we used a custom revision that was updated on each
      modelManager BuiltinIndexingSupport::refreshSourceFiles() call. This
      could lead to rejection of updated documents triggered by refactoring
      actions, like for the following case:
      
       1. Open a project containing a.h and a.cpp
       2. Open a.cpp, insert some new lines, save and close the document
       3. Open a.h and rename a function that is defined in a.cpp
          --> The refactoring action modifies a.h and a.cpp, so re-indexing
              of those is triggered. Since a.cpp has already a higher revision
              (step 2) than the updated document, the updated document is
              discarded. As a consequence find usages and follow symbol fails
              for the renamed function.
      
      Now the document call back provided to CppSourceProcessor is responsible
      for updating the document revision based on the latest revision in the
      global snapshot.
      
      Change-Id: I4dfa0a4d34991655acfa749109f00c47b0fbfdbe
      Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>
      Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
      d4bb5033
  7. Apr 07, 2015
  8. Mar 05, 2015
  9. Feb 27, 2015
  10. Feb 26, 2015
  11. Feb 20, 2015
  12. 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
  13. Jan 16, 2015
  14. Jan 14, 2015
  15. Jan 12, 2015
  16. Dec 19, 2014
  17. Dec 18, 2014
  18. Dec 17, 2014
  19. Dec 15, 2014
  20. Dec 03, 2014
    • Nikolai Kosjar's avatar
      CppTools: Remove QTC_ASSERT in CppModelManager::editorDocument() · 6b894b50
      Nikolai Kosjar authored
      
      This fixes
      
          SOFT ASSERT: "!filePath.isEmpty()" in file
          /home/nik/dev/creator/creator-ut/src/plugins/cpptools/cppmodelmanager.cpp,
          line 467
      
      which can be triggered by e.g. a "git show" document
      (onCurrentEditorChanged does not check for an empty file path).
      
      Change-Id: If4ed8e552069b290cb4ac93da52427b7ed2b91e8
      Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
      6b894b50
    • Nikolai Kosjar's avatar
      CppTools: Update document on activation · cb0d1369
      Nikolai Kosjar authored
      
      ...if the project was updated in the meanwhile.
      
      If a project is updated mark invisible editor documents dirty and update
      them if they get focus.
      
      This also fixes document highlighting when restoring a session for
      documents that the user "switched away" before the project info is
      pushed to CppModelManager.
      
      This completes
      
          CppTools: Update visible documents on project update
          commit c2eb91e0
      
      which only takes care of visible documents.
      
      Task-number: QTCREATORBUG-13270
      Change-Id: Id445e7f509deac5d03194aecc54ce4629b7926ce
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>
      cb0d1369
  21. Nov 24, 2014
  22. Nov 07, 2014
  23. Oct 23, 2014
  24. Oct 21, 2014
  25. Oct 15, 2014
  26. Oct 09, 2014
  27. Oct 06, 2014
    • Nikolai Kosjar's avatar
      CppTools: Handle reset case for setIndexingSupport · 983c87dd
      Nikolai Kosjar authored
      
      For the time being, this function actually sets an additional
      CppIndexSupport to be executed. Handle the case that a client tries to
      restore the previous CppIndexingSupport (see SymbolSearcherTestCase).
      
      This fixes GenericProjectManager::test_simple in interaction with
      CppTools::test_builtinsymbolsearcher. Now first running the CppTools
      tests and then the GenericProjectManager tests work fine.
      
      Change-Id: Ibe7248ec8651d4fdc312f10cdcc9c56d6dd086d9
      Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
      983c87dd
  28. Oct 02, 2014
  29. Sep 25, 2014
  30. Sep 22, 2014
  31. Sep 19, 2014
  32. Sep 16, 2014
  33. Sep 08, 2014
    • Orgad Shaneh's avatar
      CppTools: Fix compilation with recent gcc 4.9.2 · c023a1ca
      Orgad Shaneh authored
      See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62224
      
      
      
      .obj/release-shared/cppcodemodelinspectordialog.o: In function `CppEditor::Internal::CppCodeModelInspectorDialog::refresh()':
      cppcodemodelinspectordialog.cpp:(.text+0x79fc): undefined reference to `CppTools::Internal::CppModelManager::ensureUpdated()'
      .obj/release-shared/cppcodemodelinspectordialog.o: In function `CppTools::Internal::CppModelManager::definedMacros()':
      cppcodemodelinspectordialog.cpp:+0x26): undefined reference to `CppTools::Internal::CppModelManager::ensureUpdated()'
      .obj/release-shared/cppcodemodelinspectordialog.o: In function `CppTools::Internal::CppModelManager::headerPaths()':
      cppcodemodelinspectordialog.cpp: +0x26): undefined reference to `CppTools::Internal::CppModelManager::ensureUpdated()'
      
      Change-Id: Ie0e01f7628668cbbe11b701a93caef98bb8e335f
      Reviewed-by: default avatarAdam Majer <adamm@zombino.com>
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      c023a1ca
  34. Sep 05, 2014
  35. Sep 04, 2014
Loading