[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [kdevelop] [Bug 359942] New: Files ui_CLASSNAME.h generated during building are not parsed and as re
From: Piotr Mierzwinski via KDE Bugzilla <bugzilla_noreply () kde ! org>
Date: 2016-03-01 0:29:27
Message-ID: bug-359942-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=359942
Bug ID: 359942
Summary: Files ui_CLASSNAME.h generated during building are not
parsed and as result their members are not highlighted
properly
Product: kdevelop
Version: 4.90.91
Platform: Kubuntu Packages
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Language Support: CPP (Clang-based)
Assignee: kdevelop-bugs-null@kde.org
Reporter: piotr.mierzwinski@gmail.com
Before running KDevelop I exported variable "KDEV_CLANG_DISPLAY_DIAGS=1" and
removed kdevduchain cache. In attached file I put the output generated by
KDevelop just after loading when parsing finished.
When you open attached text file you will be able to notice that on end there
are errors referring to not existing files. Example:
/media/piotrek/FreeAgent/linux_containers/kubuntu_15.10/home/piotrek/Projekty/Qt/qtcmd_work/qtcmd_git/qtcmd2/libs/widgets/multiprogressdialog.h:22:10:
fatal error: 'ui_multiprogressdlg.h' file not found
/media/piotrek/FreeAgent/linux_containers/kubuntu_15.10/home/piotrek/Projekty/Qt/qtcmd_work/qtcmd_git/qtcmd2/libs/widgets/mediacontrolwidget.h:22:10:
fatal error: 'ui_mediacontrolwidgetgui.h'file not found
This is because both of them will be created during compilation/building the
project. In the project there is a class (header file) where such file is
included and class inherits by class located in ui_CLASSNAME.h.
For example I have such file multiprogressdialog.h contains:
#include "ui_multiprogressdlg.h"
#include <QDialog>
class MultiProgressDialog : public QDialog, Ui::MultiProgressDlg
{
...
}
whilst:
Ui::MultiProgressDlg is located in ui_multiprogressdlg.h
In MultiProgressDialog I'm using members from MultiProgressDlg. Unfortunately
all of these members are not parsed, and as a result not highlighted. As far as
remember in KDevelop 4.7.x when project has been rebuild then all of these
members were parsed and properly highlighted.
Note.
Above convention is used in Qt4 projects. I'm not aware whether the same is
used in Qt5 projects.
Reproducible: Always
Actual Results:
Members from ui_* header generated during project building are not parsed at
all
Expected Results:
Members from ui_* header generated during project building should be parsed
Tested with KDevelop and KDevplatform cloned at February 28th, 2016 after 10pm
(branch 5.0).
--
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic