1. 11 May, 2017 1 commit
    • Nikolai Kosjar's avatar
      Clang: Show function signature hint for constructors and functors · 64ec6955
      Nikolai Kosjar authored
      
      
      For "foo(|" [1] we requested a completion from libclang with the cursor
      position just before "foo" and then filtered the function declarations
      for functions matching the name "foo". This worked fine for ordinary
      functions, but obviously not for constructors and functors.
      
      Recent versions of libclang support proper function call completion with
      XCursor_OverloadCandidate, so make use of that.
      
      [1] '|' represents the cursor position
      
      Task-number: QTCREATORBUG-14882
      Task-number: QTCREATORBUG-14884
      Change-Id: I9d31b3960ccff6a8b9440dbcb7ff9f5ca9f61266
      Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
      64ec6955
  2. 24 Jun, 2016 1 commit
  3. 30 Mar, 2016 1 commit
  4. 19 Jan, 2016 2 commits
    • Tobias Hunger's avatar
      Update License according to agreement with Free Qt Foundation · 397e7f48
      Tobias Hunger authored
      
      
      * Update files in src/plugins
      
      Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22
      Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
      397e7f48
    • Nikolai Kosjar's avatar
      Clang: Correct member access operator if possible · 8d6549fa
      Nikolai Kosjar authored
      
      
       1 struct Foo { int member; };
       2 void f(Foo *foo)
       3 {
       4     foo.<REQUEST COMPLETION> // correct '.' to '->' and provide results
       5 }
      
      The preferred approach would be to check if "foo" in line 4 is of
      pointer type, but there is no suitable cursor (only CompoundStmt) at
      that position since the code is usually not yet parsed and thus invalid.
      
      Thus, just run the completion as is. If there are not any results for a
      dot completion, re-run the completion with "." exchanged by "->". This
      approach is inherently slower than the preferred approach implemented in
      the built-in code model.
      
      The following rare cases are not handled:
      
       1) Requesting completion after white space:
            Works: foo.<COMPLETE HERE>
            Fails: foo. <COMPLETE HERE>
      
       2) Opening a file and requesting completion (ctrl+space) without prior
          editing. No editing before triggering completion means that no
          unsaved file is generated on the backend side, which is a
          requirement for the correction.
      
      Task-number: QTCREATORBUG-11581
      Change-Id: I6bc8e8594778774ab342755fdb01a8a3e5c52ba0
      Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
      8d6549fa
  5. 16 Dec, 2015 1 commit
  6. 14 Oct, 2015 2 commits
  7. 23 Jul, 2015 1 commit
  8. 10 Jun, 2015 1 commit
    • Nikolai Kosjar's avatar
      Clang: Use completion through backend process · 23b8a3b2
      Nikolai Kosjar authored
      
      
      This makes us independent of libclang crashes for completion.
      Re-parsing for highlighting still happens in the Qt Creator process.
      
      Run in verbose mode:
          qtc.clangcodemodel.ipc=true
      
      Run tests:
          -test "ClangCodeModel"
      
      Task-number: QTCREATORBUG-14108
      Task-number: QTCREATORBUG-12819
      Change-Id: Id3e95bd2afdb6508bbd1d35fddc69534a909b905
      Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
      23b8a3b2
  9. 04 Feb, 2015 1 commit
  10. 12 Jan, 2015 2 commits
  11. 09 Oct, 2014 1 commit
  12. 23 Sep, 2014 1 commit
  13. 02 Jul, 2014 1 commit
  14. 14 Jan, 2014 1 commit
  15. 08 Jan, 2014 1 commit
  16. 05 Sep, 2013 1 commit
  17. 26 Mar, 2013 1 commit
  18. 29 Jan, 2013 1 commit
  19. 18 Jan, 2013 1 commit
  20. 05 Oct, 2012 1 commit
  21. 19 Jul, 2012 1 commit
  22. 15 Feb, 2012 1 commit
  23. 26 Jan, 2012 1 commit
  24. 09 Jan, 2012 1 commit
  25. 03 Nov, 2011 1 commit
  26. 06 May, 2011 1 commit
  27. 13 Apr, 2011 1 commit
  28. 12 Jan, 2011 2 commits
  29. 17 Dec, 2010 1 commit
  30. 02 Nov, 2010 1 commit
  31. 17 Sep, 2010 1 commit
  32. 05 Mar, 2010 1 commit
  33. 07 Jan, 2010 1 commit
    • Tobias Hunger's avatar
      Make method naming more consistent. · a6ad7737
      Tobias Hunger authored
        * Use id() for methods returning a string used to represent
          some type of object.
        * Use displayName() for strings that are meant to be user
          visible.
        * Quieten some warnings while touching the files anyway.
        * Move Factories to their products in the plugins where that
          was not done before.
      
      Reviewed-by: dt
      a6ad7737
  34. 16 Oct, 2009 3 commits