Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » ASTRewrite and Preprocessor Macros
ASTRewrite and Preprocessor Macros [message #1081697] Wed, 07 August 2013 11:13 Go to next message
Eclipse UserFriend
I received the following exception whilst using ASTRewrite class to change a preprocessor statement:

"Rewriting preprocessor statements is not yet supported"

I am currently targeting Eclipse Helios with CDT 7.0.2 as the lowest version to support for the plugin I am developing. I would like to know when, if at all, the ability to replace preprocessor statements was supported, and what the lowest version of Eclipse would be needed?

I am trying to decide between simply moving up the lowest version to support, vs falling back to text-based processing to change the #defines. In either case, I want to make sure the index is aware of the change because of heavy dependence on it.

Has this been implemented yet in any version of CDT?
Re: ASTRewrite and Preprocessor Macros [message #1083125 is a reply to message #1081697] Fri, 09 August 2013 10:05 Go to previous message
Eclipse UserFriend
I took a look at the latest version on GIT and I see the same throws statement. I am therefore going to presume it is something that is not supported and won't be in the near future, in which case I will rely on text edits to an IDocument over using the Refactoring API.
Previous Topic:Use Build Output Parser (BOP) to find include path
Next Topic:C++ perspective/project not options
Goto Forum:
  


Current Time: Mon May 19 21:12:17 EDT 2025

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

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

Back to the top