1. 23 Oct, 2017 5 commits
  2. 21 Oct, 2017 1 commit
  3. 20 Oct, 2017 1 commit
    • Marco Bubke's avatar
      Utils: Fix smallstring move assignment · ce4d7e9d
      Marco Bubke authored
      Before the string was simply swapped with the other string which can lead
      to an unexpected behavior for xvalues. Now the destructor of the source is
      called and it is default initialized.
      
      foo = std::move(bar);
      
      bar would now hold the value of foo.
      
      Change-Id: Ibea3f18333a168634b7faf2fdaf9b5b52c82d5cc
      Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
      ce4d7e9d
  4. 19 Oct, 2017 1 commit
    • Nikolai Kosjar's avatar
      Clang: Fix completion after qualification (::) · 7cbc7af0
      Nikolai Kosjar authored
      ...and maybe other cases.
      
      Since
      
          Clang: fix findStartOfName handling
          commit 82d0650b
      
      the proposal's base position was calculated wrong. As a result, an early
      return triggert in CodeAssistantPrivate::displayProposal (call to
      newProposal->hasItemsToPropose(prefix, reason)) and no completions were
      displayed.
      
      Fix by ensuring that the added code from the mentioned commit is only
      called when needed, namely only for function expressions.
      
      Task-number: QTCREATORBUG-19083
      Change-Id: I8f23c9b7186f9d81159939c8b3ef475a09bbe760
      Reviewed-by: Ivan Donchevskii's avatarIvan Donchevskii <ivan.donchevskii@qt.io>
      Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
      7cbc7af0
  5. 18 Oct, 2017 1 commit
    • Marco Bubke's avatar
      Clang: Improve locking of string cache · 5e0b207a
      Marco Bubke authored
      The string cache is only very seldom written but very often read. To
      improve thread scaling it is faster to lock it only for write operations.
      So we use a shared mutex which is locked in shared mode for read
      operations and locked exclusively for write operations.
      
      Change-Id: I7dfd4a02c5484683e4d0becd39269c0146126a96
      Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
      5e0b207a
  6. 17 Oct, 2017 1 commit
  7. 10 Oct, 2017 1 commit
  8. 05 Oct, 2017 2 commits
    • Marco Bubke's avatar
      Clang: Improve locking of string cache · be939a80
      Marco Bubke authored
      The string cache is only very seldom written but very often read. To
      improve thread scaling it is faster to lock it only for write operations.
      So we use a shared mutex which is locked in shared mode for read
      operations and locked exclusively for write operations.
      
      Change-Id: I2cc742d1b9cc15c162be40ab339fa8310640bc44
      Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
      be939a80
    • Marco Bubke's avatar
      Clang: Add file cache · d2e15e5f
      Marco Bubke authored
      The database is using file path integer ids to handle file paths because
      otherwise we would save many redundant data. This patch is improving it
      further with the introduction of a database based file path cache. The
      entries are now divided in a directory path and file name. This is quite
      handy for directory based file watching.
      
      Change-Id: I03f2e388e43f3d521d6bf8e39dfb95eb2309dc73
      Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
      d2e15e5f
  9. 29 Sep, 2017 1 commit
  10. 28 Sep, 2017 1 commit
  11. 25 Sep, 2017 2 commits
  12. 22 Sep, 2017 3 commits
  13. 21 Sep, 2017 4 commits
  14. 20 Sep, 2017 4 commits
  15. 18 Sep, 2017 3 commits
  16. 15 Sep, 2017 3 commits
  17. 14 Sep, 2017 2 commits
    • Marco Bubke's avatar
      Convert macros from plain QByteArray to a vector of structs · b6e12f4a
      Marco Bubke authored
      The old code model expected the macros as C++ formatted text
      ("#define Foo 42) but newer targets like the Clang codemodel expect key
      value arguments like "-DFoo=42". So instead of parsing the text again and
      again we use an abstract data description.
      
      Task-number: QTCREATORBUG-17915
      Change-Id: I0179fd13c48a581e91ee79bba9d42d501c26f19f
      Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
      b6e12f4a
    • Marco Bubke's avatar
      Clang: Add Symbol Indexing · 3adb71d4
      Marco Bubke authored
      It is a first step and now a database is generated if you start QtCreator.
      Some code is now shared with the PchManager which can be improved in the
      future.
      
      Change-Id: Ic267fe7960f6c455d91832859a673ce98f269aa2
      Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
      3adb71d4
  18. 12 Sep, 2017 1 commit
    • Nikolai Kosjar's avatar
      Clang: Avoid waiting plugin side if (re)parse fails · f2e5e220
      Nikolai Kosjar authored
      If a parse or reparse operation fails, the corresponding translation
      unit is "not intact" anymore and further job requests for that
      translation unit will be silently discarded without notifying the
      plugin. This is especially problematic when the plugin expects/waits
      (for) a certain message.
      
      A parse/reparse can fail due to e.g. an invalid commandline or an
      internal crash.
      
      In such a case, ensure to send some dummy results.
      
      Task-number: QTCREATORBUG-18864
      Change-Id: Ida9b8066fd55e64027a9b0d8bd5cf365b16a7356
      Reviewed-by: Ivan Donchevskii's avatarIvan Donchevskii <ivan.donchevskii@qt.io>
      Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
      f2e5e220
  19. 08 Sep, 2017 2 commits
  20. 07 Sep, 2017 1 commit