Bug 487172 - New Class Wizard doesn't support Mac framework style include paths
Summary: New Class Wizard doesn't support Mac framework style include paths
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 9.0.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-03 17:02 EST by Doug Schaefer CLA
Modified: 2020-09-04 15:19 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Schaefer CLA 2016-02-03 17:02:54 EST
When creating a new class, the New Class Wizard checks to see if it can find the header file containing the base classes on the project's include path.

There are a couple of problems here. First, with per file scanner info, projects don't have include paths. But we can deal with that by creating fake files.

But the real problem is that it's not taking into consideration Mac frameworks type include paths. The indexer is fine with it which is why it finds the base class.

For example, QObject on my system comes from:

/Users/dschaefer/Qt/5.5/clang_64/lib/QtCore.framework/Versions/5/Headers/qobject.h

The include path that catches this is:

/Users/dschaefer/Qt/5.5/clang_64/lib/QtCore.framework/Headers

Somewhere in the parser it is determines that this is a framework and deals with it properly. Or, the new class wizard should just trust that the header file is on the include path. If it's in the index, it must be there...