Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Hooking into the indexer
Hooking into the indexer [message #1727624] Thu, 24 March 2016 14:09
Michael Wahler is currently offline Michael WahlerFriend
Messages: 1
Registered: March 2016
Junior Member
Hi everyone,

I'd like to extract preprocessor symbols actually used in a set of C files. As an example, if the C file is

#ifdef FOO
#if BAR == 1 || BAR == 0
#endif
#endif


I want to compute a list [FOO,BAR]. So far, I've tried browsing the AST, but the IASTTranslationUnit::getAST() has already been preprocessed.

Therefore, I am looking for another way of reading these symbols. Is it possible to hook into the indexer somehow?

Cheers

Michael
Previous Topic:Using C++11 and threads - linker can't resolve pthread library
Next Topic:I want to know how to know -l name.
Goto Forum:
  


Current Time: Fri Apr 26 20:36:46 GMT 2024

Powered by FUDForum. Page generated in 0.02507 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top