1. 21 Jul, 2016 1 commit
    • Kevin Funk's avatar
      Drop unneeded Qt5Script dependency · e2a18a86
      Kevin Funk authored
      The CMake plugin used to use it, it does not anymore. Same for the qmljs
      lib apparently. Also note Qt5Script is deprecated since 5.5.
      Drop the dependency so we can save some of the installer download size
      (around 1-2 MiB)
  2. 20 Jul, 2016 3 commits
    • Sven Brauch's avatar
      Hopefully fix screwed-up clang higlighting. · 5d076e29
      Sven Brauch authored
      If you see this happening again, please tell me.
      Make sure to also update kdevplatform.
      The issue was that the clang plugin wouldn't store the modification
      revision for files which were marked as "not modified" by KTextEditor.
      Thus, no translation of the highlighting to the new state could be
      performed for those documents. This is wrong, since a document can
      be "not modified", but can still have changed in the time between the
      start of the parse job start and end, etc. Just imagine you
      press save after each character typed.
    • David Nolden's avatar
      Search declarations by ID in addition to their range · 50041d95
      David Nolden authored
      The declaration search based on "findContextAt" completely fails when
      there are multiple different versions of a header which were parsed
      differently depending on a macro. Also, findContextAt does a linear
      search, and may be slow when there is a large list of contexts.
      Whenever possible, try finding the declaration by its qualified
      identifier based on the duchain symbol table, which should be more
      efficient and scalable.
      Extract the qualified identifier from clang by
      following up the chain of semantic parents. After declarations
      were found based on the symbol table, they are filtered
      the same way as those found by findContextAt -- so there should
      be no regressions. When the search fails, then use the previous
      findContextAt method instead.
      Added a test which tests several difficult cases that failed
      without this change, and that succeed with it.
      This also fixes the testDeclarationsInsideMacroExpansion test,
      which was EXPECT_FAIL, but which succeeds now.
    • David Nolden's avatar
      If no pinned translation unit is available, ask the duchain · a36ae328
      David Nolden authored
      This fixes highlighting, navigation, etc. for complex cases
      where the primitive "buddy" mechanism doesn't help finding
      the translation unit. The buddy mechanism is not correct for
      this case, because it was built around header/source pairs,
      but fails in more complex cases. The duchain import chain
      directly leads to the original transition unit from where
      a header is included recursively.
  3. 18 Jul, 2016 1 commit
  4. 17 Jul, 2016 2 commits
  5. 15 Jul, 2016 3 commits
  6. 14 Jul, 2016 3 commits
  7. 13 Jul, 2016 8 commits
  8. 12 Jul, 2016 8 commits
  9. 11 Jul, 2016 2 commits
  10. 09 Jul, 2016 2 commits
  11. 05 Jul, 2016 1 commit
  12. 03 Jul, 2016 3 commits
    • David Nolden's avatar
      Parse imports in the correct order. · a2bf38cd
      David Nolden authored
      This is critical for the correct resolution of declarations
      and uses when headers influence each other.
      Added two tests which failed before and succeed now. The tests
      also test the more robust linking of uses which I committed
      to kdevplatform, and which allows building functional uses
      across headers that are dependent on each other but don't
      include each other.
    • David Nolden's avatar
      Allow creating navigation widgets for empty-range declarations. · d8145b18
      David Nolden authored
      This makes navigation tooltips work for objects that were
      created by a macro.
    • Andreas Cord-Landwehr's avatar
      Provide qmake arguments via list. · 4650682b
      Andreas Cord-Landwehr authored
      Provide QProcess arguments as specified by documentation. Apparently,
      with Qt 5.6 QProcess stopped to accept the previously used single string
      argument. This fixes detection of the system's qthelp documentation for
      Test Plan: Manual testing.
      Reviewers: apol, #kdevelop, kfunk
      Reviewed By: apol, #kdevelop, kfunk
      Subscribers: kfunk, apol, kdevelop-devel
      Differential Revision: https://phabricator.kde.org/D2065
  13. 02 Jul, 2016 1 commit
    • Andreas Cord-Landwehr's avatar
      Specify category for GHNS · 831d75d4
      Andreas Cord-Landwehr authored
      With my last fixes in Synchrotron, the phenomenon of empty category
      names is gone and no content is assigned to an empty category name
      anymore. With this patch, GHNS again finds the QtHelp files.
      Test Plan: Manual testing.
      Reviewers: #kdevelop, apol
      Reviewed By: #kdevelop, apol
      Subscribers: kdevelop-devel
      Differential Revision: https://phabricator.kde.org/D2064
  14. 30 Jun, 2016 1 commit
    • Kevin Funk's avatar
      Fix crash in CMakePreferences::updateCache · 0a3210b8
      Kevin Funk authored
      Happened when invoking a solution involving starting up the
      project config page.
      SUMMARY: AddressSanitizer: undefined-behavior
      ==31850==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000
      (pc 0x7f10b452f8b7 bp 0x7fff26dce210 sp 0x7fff26dcdd20 T0)
          #0 0x7f10b452f8b6 in CMakePreferences::updateCache(KDevelop::Path
          #1 0x7f10b451a94f in CMakePreferences::buildDirChanged(int)
          #2 0x7f10b454f049 in
      QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>,
      void, void (CMakePreferences::*)(int)>::call(void
      (CMakePreferences::*)(int), CMakePreferences*, void**)
          #3 0x7f10b454eb5d in void QtPrivate::FunctionPointer<void
      (CMakePreferences::*)(int)>::call<QtPrivate::List<int>, void>(void
      (CMakePreferences::*)(int), CMakePreferences*, void**)
          #4 0x7f10b454e5ff in QtPrivate::QSlotObject<void
      (CMakePreferences::*)(int), QtPrivate::List<int>, void>::impl(int,
      QtPrivate::QSlotObjectBase*, QObject*, void**, bool*)
          #5 0x7f10fb4b8e4e in QMetaObject::activate(QObject*, int, int,
      void**) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2b4e4e)
          #6 0x7f10fbe8f380 in QComboBox::currentIndexChanged(int)
          #7 0x7f10fbe917e0
          #8 0x7f10fbe93e0c
          #9 0x7f10fbe9403e in QComboBox::setCurrentIndex(int)
          #10 0x7f10fbe99678
          #11 0x7f10fb4b8fc9 in QMetaObject::activate(QObject*, int, int,
      void**) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2b4fc9)
          #12 0x7f10fb535323 in QAbstractItemModel::rowsInserted(QModelIndex
      const&, int, int, QAbstractItemModel::QPrivateSignal)
          #13 0x7f10fb432775 in QAbstractItemModel::endInsertRows()
          #14 0x7f10fbb38f32
          #15 0x7f10fbe965bb in QComboBox::insertItems(int, QStringList
      const&) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x2745bb)
          #16 0x7f10b454148e in QComboBox::addItems(QStringList const&)
          #17 0x7f10b4526a23 in CMakePreferences::reset()
          #18 0x7f10b4519e3d in
      KDevelop::ProjectConfigOptions const&, QWidget*)
          #19 0x7f10b4479bd7 in CMakeManager::perProjectConfigPage(int,
      KDevelop::ProjectConfigOptions const&, QWidget*)
          #20 0x7f11021ecfdc in
          #21 0x7f11021c380f in
          #22 0x7f10afe80e42 in
      DefinesAndIncludesManager::openConfigurationDialog(QString const&)
  15. 28 Jun, 2016 1 commit