public static extern CXTranslationUnitImpl *clang_createTranslationUnitFromSourceFile( CXIndexImpl *CIdx, sbyte *source_filename, int num_clang_command_line_args, sbyte **clang_command_line_args, uint num_unsaved_files, CXUnsavedFile *unsaved_files);
public static extern CXTranslationUnitImpl *clang_parseTranslationUnit( CXIndexImpl *CIdx, sbyte *source_filename, sbyte **command_line_args, int num_command_line_args, CXUnsavedFile *unsaved_files, uint num_unsaved_files, uint options);
public static extern CXErrorCode clang_parseTranslationUnit2FullArgv( CXIndexImpl *CIdx, sbyte *source_filename, sbyte **command_line_args, int num_command_line_args, CXUnsavedFile *unsaved_files, uint num_unsaved_files, uint options, CXTranslationUnitImpl **out_TU);
/// <summary> /// Provides a shared context for creating translation units. /// </summary> /// <param name="excludeDeclarationsFromPCH"> /// When true, allows enumeration of "local" declarations (when loading any new /// translation units). A "local" declaration is one that belongs in the translation unit /// itself and not in a precompiled header that was used by the translation unit. If false, /// all declarations will be enumerated. /// </param> /// <param name="displayDiagnostics"> /// true to print diagnostics to standard error. /// </param> public Index(bool excludeDeclarationsFromPCH, bool displayDiagnostics) { Ptr = NativeMethods.clang_createIndex( Convert.ToInt32(excludeDeclarationsFromPCH), Convert.ToInt32(displayDiagnostics)); }
public static extern uint clang_CXIndex_getGlobalOptions( CXIndexImpl *arg1);
public static extern void clang_CXIndex_setGlobalOptions( CXIndexImpl *arg1, uint options);
public static extern void clang_disposeIndex( CXIndexImpl *index);
public static extern CXErrorCode clang_createTranslationUnit2( CXIndexImpl *CIdx, sbyte *ast_filename, CXTranslationUnitImpl **out_TU);
public static extern CXTranslationUnitImpl *clang_createTranslationUnit( CXIndexImpl *CIdx, sbyte *ast_filename);
public static extern CXIndexActionImpl *clang_IndexAction_create( CXIndexImpl *CIdx);