<p>I'm using Eclipse as my IDE for a C++ project, and I would love for it to tell me where a given symbol is defined and what the parameters are for a function.</p>

<p>However, there's a catch: I also use <a href="http://www.lazycplusplus.com/" rel="nofollow noreferrer">Lazy C++</a>, a tool that takes a single source file and generates the .h and the .cpp files. Those .lzz files look like headers, but this tool supports some very mild syntactic benefits, like combining nested namespaces into a qualified name. Additionally, it has some special tags to tell the tool specifically where to put what (in header or in source file).</p>

<p>So my typical SourceFile.lzz looks like this:</p>

<pre><code>$hdr
#include &lt;iosfwd&gt;
#include "ProjectA/BaseClass.h"
$end

$src
#include &lt;iostream&gt;
#include "ProjectB/OtherClass.h"
$end

// Forward declarations
namespace BigScope::ProjectB
{
  class OtherClass;
}

namespace BigScope::ProjectA
{
  class MyClass : public ProjectA::BaseClass
  {
    void SomeMethod(const ProjectB::OtherClass&amp; Foo) { }
  }
}
</code></pre>

<p>As you see, it's still recognizable C++, but with a few extras.</p>

<p>For some reason, CDT's indexer does not seem to want to index anything, and I don't know what's wrong. In the Indexer View, it shows me an empty tree, but tells me that it has some 15000 symbols and more stuff, none of which I can seem to access.</p>

<p>So here's my <strong>question</strong>: how can I make the Indexer output some more information about what it's doing and why it fails when it does so, and can I tweak it more than with just the GUI-accessible options?</p>

<p>Thanks,</p>

<p>Carl</p>

[{'answer_id': 59251, 'author': 'Mike McQuaid', 'author_id': 5355, 'author_profile': 'https://Stackoverflow.com/users/5355', 'pm_score': 2, 'selected': False, 'text': '<p>I\'d imagine its one of:</p>\n\n<ul>\n<li><p>Eclipse doesn\'t want to display non-C++ resources in the tree (I\'ve had problems with this)</p></li>\n<li><p>You don\'t have "Preferences > C/C++ > Indexer > Index All Files" enabled.</p></li>\n<li><p>You want to use the "Full C/C++ Indexer" rather than the "Fast C/C++ Indexer"</p></li>\n</ul>\n'}, {'answer_id': 837016, 'author': 'Mike Kucera', 'author_id': 102367, 'author_profile': 'https://Stackoverflow.com/users/102367', 'pm_score': 1, 'selected': False, 'text': "<p>The CDT parser/indexer won't recognize weird extensions like that. The only thing you can do is to define macros on the Paths and Symbols property page to trick the parser. Try creating macros for <code>$hdr</code>, <code>$end</code> and <code>$src</code> that have empty bodies. That way the preprocessor will remove them and the parser won't choke on them.</p>\n"}]
['https://Stackoverflow.com/questions/58554', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2095/']