Bug 332856

Summary: Kdev-clang plugin doesn't find the correct includes for a Qt5/KF5 project.
Product: [Applications] kdevelop Reporter: Antonis Tsiapaliokas <antonis.tsiapaliokas>
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: major CC: kdebugs, kfunk
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: small app that reproduces the issue

Description Antonis Tsiapaliokas 2014-03-31 13:37:35 UTC
when i open a Qt5/KF5 project the kdev-clang plugin cannot find the includes. The only completion that exists, is the content of the current file. For a Qt4/KDE4 project everything is fine.
I will attach a small example which is reproducing the issue.

Reproducible: Always

Steps to Reproduce:
1.open kdevelop
2.import a Qt5/Kf5
3.
Actual Results:  
No completion outside of the content of the current file.

Expected Results:  
the kdev-clang completion should work.
Comment 1 Antonis Tsiapaliokas 2014-03-31 13:39:16 UTC
Created attachment 85871 [details]
small app that reproduces the issue
Comment 2 Andrey 2014-07-11 06:55:19 UTC
Confirm this.
Comment 3 Sergey Kalinichev 2014-07-23 04:39:56 UTC
Git commit c83cc8cd025385494c3de9c1e424b02c8b704d67 by Sergey Kalinichev.
Committed on 19/07/2014 at 17:52.
Pushed by skalinichev into branch 'master'.

Fix include paths for QT5 projects.

This patch uses the same technique as the one used in oldcpp.
See also fadd0a9fa850883c0d3ce015048ba8bfc8df05f2 and
aed6fefc7e8ed083911bd36f7c7d06241c0357ce in KDevelop.
REVIEW: 119375

M  +32   -9    clangparsejob.cpp

http://commits.kde.org/kdev-clang/c83cc8cd025385494c3de9c1e424b02c8b704d67