Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Standalone Software Fault Injector


I'm trying to do an software to inject software faults in C programs, using CDT.

I have some .c files and read them with:

translationUnit = GPPLanguage.getDefault().getASTTranslationUnit(fileContent, info, emptyIncludes, null, opts, log);

But, when I try rewrite the AST Tree I get a NullPointException in

// Calculate formatting changes for the regions after the refactoring changes.
ICProject project = tu.getCProject();

What is my problem? 
What I'm doing wrong? 
I need to have a project with C files? Is mandatory?

Gonçalo Silva Pereira

Back to the top