Java Code Examples for org.eclipse.cdt.core.dom.ast.gnu.cpp.GPPLanguage

The following examples show how to use org.eclipse.cdt.core.dom.ast.gnu.cpp.GPPLanguage. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: api-mining   Source File: CppASTExtractor.java    License: GNU General Public License v3.0 5 votes vote down vote up
@Override
protected IASTTranslationUnit getAstForLanguage(final FileContent fc,
		final IScannerInfo si, final IncludeFileContentProvider ifcp,
		final IIndex idx, final int options, final IParserLogService log)
		throws CoreException {
	return GPPLanguage.getDefault().getASTTranslationUnit(fc, si, ifcp,
			idx, options, log);
}
 
Example 2
@Override
protected IASTTranslationUnit getAstForLanguage(final FileContent fc,
		final IScannerInfo si, final IncludeFileContentProvider ifcp,
		final IIndex idx, final int options, final IParserLogService log)
		throws CoreException {
	return GPPLanguage.getDefault().getASTTranslationUnit(fc, si, ifcp,
			idx, options, log);
}
 
Example 3
@Override
protected IASTTranslationUnit getAstForLanguage(final FileContent fc,
		final IScannerInfo si, final IncludeFileContentProvider ifcp,
		final IIndex idx, final int options, final IParserLogService log)
		throws CoreException {
	return GPPLanguage.getDefault().getASTTranslationUnit(fc, si, ifcp,
			idx, options, log);
}
 
Example 4
public void parse(String sourceCode){
	FileContent fileContent = new InternalFileContent(defaultFileName, new CharArray(sourceCode));
	enableOption(GPPLanguage.OPTION_IS_SOURCE_UNIT);
	enableOption(ITranslationUnit.AST_SKIP_ALL_HEADERS);
	parse(fileContent);
}