"is currently not part of the index" [message #262344] |
Thu, 31 July 2008 22:50 |
Eclipse User |
|
|
|
Originally posted by: harlan.zamora.yahoo.com
Hi,
I am new to Eclipse and I running into the the following error when trying
to use the Call Hierarchy in eclipse:
"The file header_PRIV.h is currently not part of the index"
I am working with some complex code that for example purposes I have
simplified for my question to the following:
header.h
---------
class Header
{
public:
Header();
~Header();
private:
#include "header_PRIV.h"
};
header_PRIV.h
-------------
Example();
AnotherExample()
header.cpp
----------
#include "header.h"
Header::Header()
{
}
Header::~Header()
{
}
Header::Example()
{
cout << "Example" << endl;
AnotherExample();
}
Header::AnotherExample()
{
cout << "AnotherExample" << endl;
}
When I use the Eclipse Call Hierchy on either Example() or
AnotherExample() I am unable to see the call tree. I am guessing that the
issue has to do with the way the header.h file includes "#include
"headerFile_PRIV.h" as it's private attribute. I don't see this issue on
public methods, on public methods I can actually see the call tree upwards
and downwards.
I have enabled under my project Indexer preferences "Fast C/C++ Indexer"
as well as "Full C/C++ Indexer", and had the checkmark for "Index all
files". But even after this, I am still unable to use the call tree on the
private methods mentioned.
Is there a way I can tell eclipse to see this or some feature or setting
that I may need to select?
Thanks
Harlan-
|
|
|
Re: "is currently not part of the index" [message #262347 is a reply to message #262344] |
Fri, 01 August 2008 02:40 |
Eclipse User |
|
|
|
Originally posted by: codeslave.ca.ibm.com
Sounds like a C/C++ question. Copying CDT newsgroup, eclipse.tools.cdt.
Harlan Zamora wrote:
> Hi,
>
> I am new to Eclipse and I running into the the following error when
> trying to use the Call Hierarchy in eclipse:
>
> "The file header_PRIV.h is currently not part of the index"
>
> I am working with some complex code that for example purposes I have
> simplified for my question to the following:
>
> header.h
> ---------
>
> class Header {
>
> public:
> Header();
> ~Header();
> private:
> #include "header_PRIV.h"
> };
>
> header_PRIV.h
> -------------
>
> Example();
> AnotherExample()
>
>
> header.cpp
> ----------
>
> #include "header.h"
>
> Header::Header()
> {
> }
>
> Header::~Header()
> {
> }
>
> Header::Example()
> {
> cout << "Example" << endl;
> AnotherExample();
> }
>
> Header::AnotherExample()
> {
> cout << "AnotherExample" << endl;
> }
>
> When I use the Eclipse Call Hierchy on either Example() or
> AnotherExample() I am unable to see the call tree. I am guessing that
> the issue has to do with the way the header.h file includes "#include
> "headerFile_PRIV.h" as it's private attribute. I don't see this issue
> on public methods, on public methods I can actually see the call tree
> upwards and downwards.
>
> I have enabled under my project Indexer preferences "Fast C/C++ Indexer"
> as well as "Full C/C++ Indexer", and had the checkmark for "Index all
> files". But even after this, I am still unable to use the call tree on
> the private methods mentioned.
> Is there a way I can tell eclipse to see this or some feature or setting
> that I may need to select?
> Thanks
>
> Harlan-
>
--
Nick Boldt :: Release Engineer, IBM Toronto Lab
Eclipse Modeling :: http://www.eclipse.org/modeling
http://wiki.eclipse.org/index.php/User:Nickb
|
|
|
|
Powered by
FUDForum. Page generated in 0.08026 seconds