1. 26 Jan, 2015 1 commit
    • Nikolai Kosjar's avatar
      CppEditor: Move CppEditorWidget::linkToSymbol to CppTools · cfd3b561
      Nikolai Kosjar authored
      * Cuts direct dependency to CPlusPlus from cppeditor.h, but
        cppfunctiondecldeflink.h still pulls it in.
      
      * Cuts direct dependency to
        cppeditor.h from cppvirtualfunctionassistprovider.cpp, but it still
        depends on cppeditorconstants.h.
      
      * Cuts direct dependency to cppeditor.h from cppelementevaluator.cpp.
      
      The long-term goal is to make the CppEditor independent from concrete
      code model backends.
      
      Change-Id: I291ee0d0da5fc5ed1a839a763fe7be11dcf7a6fb
      Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
      cfd3b561
  2. 14 Jan, 2015 1 commit
    • Przemyslaw Gorszkowski's avatar
      C++: display enum value in tooltip for simplest case · 9e159d87
      Przemyslaw Gorszkowski authored
      If it is possible lets calculate enum value for the simplest case.
      Example where it works:
      enum
      {
        enum_val1, // tooltip = "enum_val1 = 0"
        enum_val2 // tooltip = "enum_val2 = 1"
      };
      
      enum
      {
        enum_val1=10, // tooltip = "enum_val1 = 10"
        enum_val2 // tooltip = "enum_val2 = 11"
      };
      
      enum
      {
        enum_val1, // tooltip = "enum_val1 = 0"
        enum_val2=10, // tooltip = "enum_val2 = 10"
        enum_val3 // tooltip = "enum_val3 = 11"
      };
      
      Example where it does not work:
      enum
      {
        enum_val1=10+1, // tooltip = "enum_val1 = 10+1"
        enum_val2 // tooltip = "enum_val2"
      };
      
      Task-number: QTCREATORBUG-4529
      Change-Id: Idd85ed7304018f73f2b068bf1ac28f1abde02f93
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
      Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
      9e159d87
  3. 12 Jan, 2015 1 commit
  4. 09 Oct, 2014 1 commit
  5. 29 Sep, 2014 1 commit
  6. 19 Sep, 2014 1 commit
  7. 27 Aug, 2014 1 commit
  8. 04 Aug, 2014 1 commit
  9. 31 Jul, 2014 1 commit
  10. 18 Jun, 2014 1 commit
    • Dale Marchand's avatar
      Fixed compilation error on RHEL 5.10. · ff52061e
      Dale Marchand authored
      Nesting the namespace "Internal" inside of other namespaces and using
      sequential "using namespace" directives *or* relying on a "using
      namespace" directive to resolve a method name that contained the
      "Internal" namespace for resolution resulted in ambiguous resolution
      errors when compiling with the RHEL5.10 stock compiler (GCC 4.1.2).  A
      sample error is provided below:
      
      Compilation error encountered was:
      reference to 'Internal' is ambiguous
      /usr/lib/gcc/x86_64-redhat-
      candidates are: namespace Internal { }
      qt-creator/src/libs/cplusplus/PPToken.h:106: error:
      namespace CPlusPlus::Internal { }
      
      Modifying the using namespace directives to reflect the nested nature of
      the namespace names resolved the compilation errors.  For example:
      
      using namespace CppEditor;
      using namespace Internal;
      
      produced errors.  However,
      
      using namespace CppEditor;
      using namespace CppEditor::Internal;
      
      resolved the compilation errors by removing the ambiguity.
      
      Change-Id: I6d5051e20acb2c147bd7ee1c6c6e1e3b2b4ff0f9
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      ff52061e
  11. 13 Jun, 2014 1 commit
  12. 23 May, 2014 2 commits
  13. 08 Jan, 2014 1 commit
  14. 18 Dec, 2013 1 commit
  15. 22 Nov, 2013 1 commit
  16. 01 Oct, 2013 1 commit
  17. 22 Aug, 2013 1 commit
  18. 21 Aug, 2013 1 commit
    • Przemyslaw Gorszkowski's avatar
      C++: wrong tooltip behind function without args · bf69b4c4
      Przemyslaw Gorszkowski authored
      Example code:
      float fun()
      {
          return 0;
      }
      
      Hovering in the area behind the function without args(but in the same line,
      in above example after "float fun()") will bring up tooltip with returned
      value of this function(in the above example it will be "float").
      
      Fixed by checking this special case after gathering results for tooltip
      and don't show confusing tooltip.
      
      Task-number: QTCREATORBUG-4780
      Change-Id: Iab2bacddf33a70d5ea941001a2dd317c824d9db5
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      bf69b4c4
  19. 09 Jul, 2013 1 commit
  20. 11 Jun, 2013 1 commit
  21. 10 Apr, 2013 2 commits
  22. 08 Apr, 2013 1 commit
  23. 03 Apr, 2013 1 commit
  24. 29 Jan, 2013 1 commit
  25. 22 Jan, 2013 1 commit
  26. 11 Oct, 2012 2 commits
  27. 05 Oct, 2012 1 commit
  28. 19 Jul, 2012 1 commit
  29. 14 Mar, 2012 1 commit
  30. 20 Feb, 2012 1 commit
  31. 15 Feb, 2012 1 commit
  32. 26 Jan, 2012 1 commit
  33. 24 Jan, 2012 1 commit
  34. 23 Jan, 2012 1 commit
    • 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
  35. 13 Jan, 2012 1 commit
  36. 12 Jan, 2012 1 commit
  37. 03 Nov, 2011 1 commit