1. 17 Dec, 2014 1 commit
  2. 19 Nov, 2014 1 commit
    • Nikolai Kosjar's avatar
      C++: Fix highlighting after "invalid code" · beac7b95
      Nikolai Kosjar authored
      For the semantic info document we do not expand function like macros and
      because of that certain macro invocations lead to invalid code that we
      need to handle, e.g.:
      
      	Q_GLOBAL_STATIC(CppTools::SymbolFinder, symbolFinder)
      	class Foo {};
      
      This change makes parsing Foo in the semantic info document successfully
      again, which affects highlighting of that class.
      
      Change-Id: I389265ac64d3f0b8b8f406d38fa58d78820b14ba
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>
      beac7b95
  3. 12 Nov, 2014 2 commits
  4. 11 Nov, 2014 1 commit
  5. 10 Nov, 2014 1 commit
  6. 07 Nov, 2014 1 commit
    • Przemyslaw Gorszkowski's avatar
      C++: fix follow symbol for const arguments · 0ff1cba7
      Przemyslaw Gorszkowski authored
      Fixed case:
      
      class Foo {};
      void foo(int v) {}
      void foo(const char *v) {}
      void foo(const Foo &v) {}
      void foo(char v) {}
      
      void test()
      {
          foo(5);
          foo("hoo");
          foo('a');
          char *var = "var";
          foo(var); // Jumps to last override, regardless of its type
          Foo f;
          foo(f); // Jumps to last override
      }
      
      Task-number: QTCREATORBUG-13128
      Change-Id: I038553bb3bdbe1c300fc01573c14b6fedf0320cd
      Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
      0ff1cba7
  7. 06 Nov, 2014 1 commit
  8. 04 Nov, 2014 1 commit
  9. 15 Oct, 2014 1 commit
  10. 09 Oct, 2014 2 commits
  11. 08 Oct, 2014 2 commits
  12. 02 Oct, 2014 1 commit
  13. 01 Oct, 2014 1 commit
  14. 30 Sep, 2014 1 commit
  15. 25 Sep, 2014 1 commit
  16. 22 Sep, 2014 1 commit
  17. 19 Sep, 2014 1 commit
  18. 17 Sep, 2014 1 commit
  19. 12 Sep, 2014 1 commit
  20. 11 Sep, 2014 1 commit
  21. 09 Sep, 2014 2 commits
  22. 08 Sep, 2014 1 commit
  23. 04 Sep, 2014 1 commit
  24. 29 Aug, 2014 2 commits
    • Nikolai Kosjar's avatar
      C++: Remove unused local variable · d5c6a360
      Nikolai Kosjar authored
      Change-Id: I4568709edc7e11de2584916014c16f95ceb4b584
      Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
      d5c6a360
    • 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
  25. 28 Aug, 2014 2 commits
  26. 20 Aug, 2014 1 commit
  27. 18 Aug, 2014 1 commit
  28. 01 Aug, 2014 1 commit
    • Przemyslaw Gorszkowski's avatar
      C++: nested class with enclosing template class · ba42ceb0
      Przemyslaw Gorszkowski authored
      The parent of instantiation of nested class of template class
      should be the instantiation of enclosing template class.
      
      To prevent the infinite loop for case with local typedef of enclosing
      template we should not change a parent of typedefed instatiation of
      enclosing template. Example:
      template <typename T>
      struct Enclosing
      {
        typedef Enclosing<T> EnclosingT;// first case
        struct Nested
        {
          typedef Enclosing<T> EnclosingT;// second case
        };
      };
      
      Task-number: QTCREATORBUG-11752
      Task-number: QTCREATORBUG-11999
      Change-Id: Iadd7b5ef73ee0c4881f59c9dabfe03339f55827b
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      ba42ceb0
  29. 31 Jul, 2014 1 commit
  30. 24 Jul, 2014 1 commit
    • Nikolai Kosjar's avatar
      CppTools: Auto-include pre-compiled headers · 6a9ae7e2
      Nikolai Kosjar authored
      So far the pre-compiled headers were processed (thus defines from those
      headers were visible), but the actual includes for the documents were
      not added, which is necessary for lookup/completion.
      
      Note that this will be only done if pre-compiled headers are not ignored
      (Options > C++ > Code Model > [] Ignore pre-compiled headers).
      
      Change-Id: I54a8e6b00597af164d958e3e9f2a1075ea187788
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      6a9ae7e2
  31. 22 Jul, 2014 1 commit
  32. 17 Jul, 2014 1 commit
  33. 08 Jul, 2014 1 commit
  34. 07 Jul, 2014 1 commit