1. 26 Mar, 2014 3 commits
  2. 25 Mar, 2014 4 commits
  3. 17 Mar, 2014 3 commits
    • Nikolai Kosjar's avatar
      CppEditor: Allow force highlighting if using clang · cbf98ba8
      Nikolai Kosjar authored
      ...so we can rehighlight if it's requested by the editor. This is e.g.
      necessary if the font size changes.
      
      Task-number: QTCREATORBUG-11502
      Change-Id: I608921899fc37fcf1394db9ff041e6b378196bdd
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      cbf98ba8
    • Nikolai Kosjar's avatar
      CppTools: Tag incomplete semantic info · 18e6be55
      Nikolai Kosjar authored
      ...in order to be able to full-rehighlight on the next turn.
      
      The following sequence was problematic:
      
      1. recalculateSemanticInfoDetached(true)
         * e.g. triggered by opening the document
      2. recalculateSemanticInfoDetached(false)
         * e.g. triggered by moving the cursor
         * cancels 1. and leads to incompletely parsed/checked document - OK
      3. startHighlighting()
         * triggered by 1.; starts highlighting on incomplete document - OK
      4. startHighlighting()
         * gets a completely parsed/checked document - OK
         * not forced, so just compare revisions; they are the same, so
           skip/return - a partly highlighted document is left behind.
      
      Task-number: QTCREATORBUG-11367
      Change-Id: Ic56e00e862ec4a1ffa197b2fc8b48be56a3562de
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      18e6be55
    • Nikolai Kosjar's avatar
      CppEditor: Do not cancel highlighter on user interaction · 1f0fd959
      Nikolai Kosjar authored
      e.g. changing cursor position or editing text.
      
      CPPEditorWidget::updateUses() does not depend on the highlighter, but
      only on the semantic info update.
      
      Task-number: QTCREATORBUG-11367
      Change-Id: Ia9f5ed7c2adc6899995a5d966a20e45b2f87d9e3
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      1f0fd959
  4. 13 Mar, 2014 4 commits
  5. 12 Mar, 2014 3 commits
  6. 11 Mar, 2014 1 commit
  7. 10 Mar, 2014 3 commits
  8. 06 Mar, 2014 1 commit
  9. 05 Mar, 2014 1 commit
  10. 04 Mar, 2014 1 commit
  11. 27 Feb, 2014 2 commits
  12. 24 Feb, 2014 1 commit
  13. 21 Feb, 2014 1 commit
  14. 20 Feb, 2014 1 commit
  15. 19 Feb, 2014 1 commit
    • Fawzi Mohamed's avatar
      qml: moving most of ModelManager logic to ModelManageInterface · d24cb60d
      Fawzi Mohamed authored
      Currently ModelManager contains lot logic, but as it sits in QmlJSTools
      it is not possible to use it in standalone tests.
      Moving most of the logic to ModelManagerInterface (and cleanup)
      to allow better testing, and refactoring.
      This introduces a dependency of the qmljs lib on the cplusplus lib
      Also a (small) part of the CppTool::ModelManagerInterface has been
      moved to CPlusPlus::CppModelManagerBase to remove the dependency on
      CppTools to gather the Qml types exposed from C++.
      
      Change-Id: Icad7fe96dfd0f1a2b1058d82bd98c77c40aa5e9d
      Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
      d24cb60d
  16. 18 Feb, 2014 1 commit
    • Eike Ziller's avatar
      CppEditor: Fix missing semantic highlighting · b5be4d28
      Eike Ziller authored
      In case the editor is hidden before semantic highlighting started
      (because semantic parsing hasn't finished yet).
      Just disable the logic that tries to optimize that for now, since it is
      not working, and fixing it will require more work (that's done later
      anyhow).
      
      Task-number: QTCREATORBUG-11367
      Change-Id: I7ef3cc558e514968f90d2ea56b2df362606d879a
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      b5be4d28
  17. 17 Feb, 2014 4 commits
  18. 12 Feb, 2014 1 commit
    • Orgad Shaneh's avatar
      Clean up single namespace forward-declarations · 7ed15760
      Orgad Shaneh authored
      Done using the following ruby script:
      
      Dir.glob('**/*.h').each { |file|
        if File.file?(file)
          s = File.read(file)
          t = s.gsub(/^namespace .+ \{\n\s*class .*;\n\s*\}.*$/) { |m| m.gsub(/\n\s*/, ' ').gsub(/\s*\/\/.*$/, '') }
          if t != s
            puts file
            File.open(file, 'w').write(t)
          end
        end
      }
      
      Change-Id: Iffcb966e90eb8e1a625eccd5dd0b94f000ae368e
      Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
      7ed15760
  19. 11 Feb, 2014 1 commit
  20. 06 Feb, 2014 1 commit
  21. 05 Feb, 2014 1 commit
    • Erik Verbruggen's avatar
      C++: release more futures. · 58af02f0
      Erik Verbruggen authored
      The CPPEditorWidget retained two futures, as did the attached future
      watchers retained them too. Together, each future and the watcher held
      on to a complete snapshot that would only get released when another
      future was set. This could result into retaining old snapshots in
      editors that were invisible/unused for long.
      
      Change-Id: I1133e857c620437b4a69b9dad468f6bd458304b8
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      58af02f0
  22. 04 Feb, 2014 1 commit