Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Detecting include paths and preprocessor symbols(Scanner Discovery, Autodiscovery, ptrace, Language Setting Providers)
Detecting include paths and preprocessor symbols [message #1224987] Sat, 28 December 2013 10:26
Shaun Pinney is currently offline Shaun PinneyFriend
Messages: 1
Registered: December 2013
Junior Member
I've read the Eclipse help and found that the CDT determines include paths and preprocessor symbols using two techniques:

1. Querying the compiler itself for built-in include paths and predefined macros
2. Parsing the build output for include paths and macros added via command line arguments

http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Fconcepts%2Fcdt_c_scanner_discovery.htm

For 2, the help page indicates it relies on the verbose build output of the build system. So, if a build system redirects compiler output to a logfile instead of stdout, then these command line options would not be seen during the parsing step.

Are there Language Setting Providers that can capture command line parameters when the build system redirects the compiler command line parameters away from stdout? I can envision a ptrace-based method on Linux to capture all child process parameters, but have not found any mention of an CDT provider that does this.

Thanks,
Shaun
Previous Topic:[Solved] Hide expand buttons of file nodes in Project Explorer
Next Topic:How to debug pax with Eclipse?
Goto Forum:
  


Current Time: Sat Apr 27 04:33:55 GMT 2024

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

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

Back to the top