Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Performing Refactoring without GUI

Hello.

  I'm trying to perform refactoring via CDT api, using as example the ExtractLocalVariableRefactoringTest class, but after execute this class in JUnit it shows a NullPointerException. Could you show me a code example of refactoring using API, given a .c file as input and a text selection in this file? 

Example of a .c file:


int f(){

  int x = 2; //2 could be the selection

}


Thank you so much.


--
[]s,

  Gustavo

     http://www.gustavowagner.com
     Skype/Redes Sociais: gugawag

Back to the top